_SERVER array elements are all upper-case.
[core.git] / inc / classes / main / request / web / class_HttpRequest.php
index 5e5a511d3d5f44c8ff2d81076ee2230354000902..8208105fb1323891ea7a40ac8a2d11b46728aeb1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  * @todo               Move out the cookie part to a seperate class, e.g. Cookie
@@ -67,12 +67,12 @@ class HttpRequest extends BaseRequest implements Requestable {
         * @param       $headerName             Name of the header
         * @return      $headerValue    Value of the header or 'null' if not found
         */
-       public function getHeader ($headerName) {
+       public function getHeaderElement ($headerName) {
                // Default return value on error
                $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])) {