diff options
author | CJ <chern.jie@mig33global.com> | 2013-04-17 15:45:22 +0200 |
---|---|---|
committer | CJ <chern.jie@mig33global.com> | 2013-04-17 15:45:22 +0200 |
commit | 8347f9161a1ba080be62b22eb546cceea8f8a8e9 (patch) | |
tree | d8e66f46f9630b7dc7cbcb8bc0aaba496cb4cbd6 /system/core/Input.php | |
parent | c5c522a069cc504509955890aacd55b97979043b (diff) |
See #2409: Avoid overwriting global $_SERVER and set Content-Type to protected property;
Diffstat (limited to 'system/core/Input.php')
-rw-r--r-- | system/core/Input.php | 2 |
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) { |