Revert "Removed unnecessary code"

This reverts commit c89a2346a8.
This commit is contained in:
Alex Bilbie 2013-02-05 15:57:24 +00:00
parent 6b4e51b3a3
commit 322eb15bb5

View File

@ -67,8 +67,8 @@ class Request implements RequestInterface
{ {
$headers = array(); $headers = array();
foreach ($this->server() as $name => $value) { foreach ($this->server() as $name => $value) {
if (substr($name, 0, 5) === 'HTTP_') { if (substr($name, 0, 5) == 'HTTP_') {
$name = str_replace(' ', '-', strtolower(str_replace('_', ' ', substr($name, 5)))); $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
$headers[$name] = $value; $headers[$name] = $value;
} }
} }