From: Roland Haeder Date: Tue, 23 Dec 2014 19:46:48 +0000 (+0100) Subject: _SERVER array elements are all upper-case. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0bdfbb707f1b09062183f3977e8abf2197730527;p=core.git _SERVER array elements are all upper-case. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/request/web/class_HttpRequest.php b/inc/classes/main/request/web/class_HttpRequest.php index e00a8fe2..8208105f 100644 --- a/inc/classes/main/request/web/class_HttpRequest.php +++ b/inc/classes/main/request/web/class_HttpRequest.php @@ -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])) {