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:
Ingo Schommer 2012-02-12 19:38:21 +01:00
parent ce4f456fc7
commit 5ab007db21

View File

@ -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);
}
foreach ($headers as $header => $value) {
$req->addHeader($header, $value);
}