summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-12-31 17:45:35 +0100
committerAndrey Andreev <narf@bofh.bg>2012-12-31 17:45:35 +0100
commitf7c74a66ab20e36b67f3911f8ee97999cd384529 (patch)
tree996e31ec71c0c3f9be4c9c4b06019621a8d27ebc
parent88257ce618483e4477cbfed0e2f0b4c429533e09 (diff)
parentc82b57b32c0398bd36d625b9e5f9c20f54b768d2 (diff)
Merge pull request #2107 from danhunsaker/feature/header-normalization
Fixed normalization of headers under Apache
-rw-r--r--system/core/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index a3ad14e24..ebe05555d 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -788,7 +788,7 @@ class CI_Input {
// take SOME_HEADER and turn it into Some-Header
foreach ($headers as $key => $val)
{
- $key = str_replace('_', ' ', strtolower($key));
+ $key = str_replace(array('_', '-'), ' ', strtolower($key));
$key = str_replace(' ', '-', ucwords($key));
$this->headers[$key] = $val;