Updated apache request headers to return if available, when false return empty array so nothing breaks.

This commit is contained in:
Joe Ginley 2020-02-03 22:48:26 -05:00
parent 2eaa8c8697
commit f6a273dbb5
1 changed files with 7 additions and 1 deletions

View File

@ -490,7 +490,13 @@ class ServerRequest extends Request implements ServerRequestInterface
return $headers; return $headers;
} }
else { else {
return apache_request_headers(); $headers = apache_request_headers();
if (is_array($headers)) {
return $headers;
}
else {
return array();
}
} }
} }