mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed apache_request_headers() usage in Director::direct(), it causes inconsistencies in capitalisation over the default method (inspecting $_SERVER)
This commit is contained in:
parent
ce4f456fc7
commit
5ab007db21
@ -88,14 +88,7 @@ class Director {
|
||||
@file_get_contents('php://input')
|
||||
);
|
||||
|
||||
// Load the request headers. If we're not running on Apache, then we
|
||||
// need to manually extract the headers from the $_SERVER array.
|
||||
if (function_exists('apache_request_headers')) {
|
||||
$headers = apache_request_headers();
|
||||
} else {
|
||||
$headers = self::extract_request_headers($_SERVER);
|
||||
}
|
||||
|
||||
$headers = self::extract_request_headers($_SERVER);
|
||||
foreach ($headers as $header => $value) {
|
||||
$req->addHeader($header, $value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user