Removed unnecessary code

This commit is contained in:
Alex Bilbie 2013-02-04 19:45:58 +00:00
parent 22f793a16f
commit c89a2346a8

View File

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