[RequestHandler] fixed request headers
This commit is contained in:
parent
8d8afd992b
commit
27057fe6ae
@ -759,7 +759,7 @@ class Request implements RequestInterface
|
|||||||
$headers = array();
|
$headers = array();
|
||||||
foreach ($this->server->all() as $key => $value)
|
foreach ($this->server->all() as $key => $value)
|
||||||
{
|
{
|
||||||
if (strtolower('HTTP_') === strtolower(substr($key, 0, 5)))
|
if ('http_' === strtolower(substr($key, 0, 5)))
|
||||||
{
|
{
|
||||||
$headers[strtoupper(strtr(substr($key, 5), '-', '_'))] = $value;
|
$headers[strtoupper(strtr(substr($key, 5), '-', '_'))] = $value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user