From 322eb15bb50379b9b7e123b31fc65a7a7eaf7287 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 5 Feb 2013 15:57:24 +0000 Subject: [PATCH] Revert "Removed unnecessary code" This reverts commit c89a2346a84a7a1aabe9db7443cde04fc53e8a28. --- src/OAuth2/Util/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OAuth2/Util/Request.php b/src/OAuth2/Util/Request.php index 0e47a1f7..1b201057 100644 --- a/src/OAuth2/Util/Request.php +++ b/src/OAuth2/Util/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(' ', '-', strtolower(str_replace('_', ' ', substr($name, 5)))); + if (substr($name, 0, 5) == 'HTTP_') { + $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5))))); $headers[$name] = $value; } }