X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Frequest%2Fclass_HttpRequest.php;h=b7fda8cab97fc77c69eea95fd33a45fc287b8065;hp=0538512a324aa43dde466f516aa23875728566f6;hb=0cd57c3885f00ad77fc599e53ed2f2d5e7ac267f;hpb=c6d73b0e3246efc824cb98338d4be7ee5bc9f308 diff --git a/inc/classes/main/request/class_HttpRequest.php b/inc/classes/main/request/class_HttpRequest.php index 0538512a..b7fda8ca 100644 --- a/inc/classes/main/request/class_HttpRequest.php +++ b/inc/classes/main/request/class_HttpRequest.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -144,7 +144,7 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable { $headerValue = null; // Construct the name - $name = 'HTTP_' . strtolower(str_replace('-', '_', $headerName)); + $name = 'HTTP_' . strtolower($this->convertDashesToUnderscores($headerName)); // Does this header exist? if (isset($_SERVER[$name])) {