_SERVER array elements are all upper-case.
authorRoland Haeder <roland@mxchange.org>
Tue, 23 Dec 2014 19:46:48 +0000 (20:46 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 23 Dec 2014 19:46:48 +0000 (20:46 +0100)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/request/web/class_HttpRequest.php

index e00a8fe..8208105 100644 (file)
@@ -72,7 +72,7 @@ class HttpRequest extends BaseRequest implements Requestable {
                $headerValue = NULL;
 
                // Construct the name
-               $name = 'HTTP_' . strtolower($this->convertDashesToUnderscores($headerName));
+               $name = 'HTTP_' . strtoupper($this->convertDashesToUnderscores($headerName));
 
                // Does this header exist?
                if (isset($_SERVER[$name])) {