Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Removed apache_request_headers() usage in Director::direct(), i…

…t causes inconsistencies in capitalisation over the default method (inspecting $_SERVER)
  • Loading branch information...
commit 5ab007db21690149375293301fc8c166f1bff8c4 1 parent ce4f456
@chillu chillu authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 control/Director.php
View
9 control/Director.php
@@ -88,14 +88,7 @@ static function direct($url, DataModel $model) {
@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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.