Updated apache request headers to return if available, when false return empty array so nothing breaks.
This commit is contained in:
parent
2eaa8c8697
commit
f6a273dbb5
|
|
@ -490,7 +490,13 @@ class ServerRequest extends Request implements ServerRequestInterface
|
|||
return $headers;
|
||||
}
|
||||
else {
|
||||
return apache_request_headers();
|
||||
$headers = apache_request_headers();
|
||||
if (is_array($headers)) {
|
||||
return $headers;
|
||||
}
|
||||
else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue