mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Removed unnecessary code
This commit is contained in:
parent
22f793a16f
commit
c89a2346a8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user