From c89a2346a84a7a1aabe9db7443cde04fc53e8a28 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 4 Feb 2013 19:45:58 +0000 Subject: [PATCH] Removed unnecessary code --- src/OAuth2/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OAuth2/Request.php b/src/OAuth2/Request.php index 3b934a69..6c5c1742 100644 --- a/src/OAuth2/Request.php +++ b/src/OAuth2/Request.php @@ -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; } }