You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SeverRequest::fromGlobals only works on Apache as getallheaders does not exist on other webservers as @iotch pointed out in #54 (comment) and I can confirm. So the headers are not available then.
We can provide a fallback solution reading the headers from $_SERVER (in an ugly way). This is also done in symfony etc. Maybe it's a good idea to implement getallheaders as Polyfill and add it to https://github.com/symfony/polyfill
The text was updated successfully, but these errors were encountered:
can we implement a simple (ugly as you call it) solution to start with like here which will be part of the library so we do not have to include other libraries for this?
SeverRequest::fromGlobals
only works on Apache asgetallheaders
does not exist on other webservers as @iotch pointed out in #54 (comment) and I can confirm. So the headers are not available then.We can provide a fallback solution reading the headers from
$_SERVER
(in an ugly way). This is also done in symfony etc. Maybe it's a good idea to implementgetallheaders
as Polyfill and add it to https://github.com/symfony/polyfillThe text was updated successfully, but these errors were encountered: