summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorCJ <chern.jie@mig33global.com>2013-04-17 15:45:22 +0200
committerCJ <chern.jie@mig33global.com>2013-04-17 15:45:22 +0200
commit8347f9161a1ba080be62b22eb546cceea8f8a8e9 (patch)
treed8e66f46f9630b7dc7cbcb8bc0aaba496cb4cbd6 /system/core
parentc5c522a069cc504509955890aacd55b97979043b (diff)
See #2409: Avoid overwriting global $_SERVER and set Content-Type to protected property;
Diffstat (limited to 'system/core')
-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 ff0bbe060..0ef81128e 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -802,7 +802,7 @@ class CI_Input {
return $this->headers = apache_request_headers();
}
- $_SERVER['HTTP_CONTENT_TYPE'] = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : @getenv('CONTENT_TYPE');
+ $this->headers['Content-Type'] = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : @getenv('CONTENT_TYPE');
foreach ($_SERVER as $key => $val)
{