mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 18:19:47 +05:30
parent
6b4e51b3a3
commit
322eb15bb5
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user