From 5ab007db21690149375293301fc8c166f1bff8c4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 12 Feb 2012 19:38:21 +0100 Subject: [PATCH] MINOR Removed apache_request_headers() usage in Director::direct(), it causes inconsistencies in capitalisation over the default method (inspecting $_SERVER) --- control/Director.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/control/Director.php b/control/Director.php index 5b173d1cb..a7cf8b428 100644 --- a/control/Director.php +++ b/control/Director.php @@ -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); }