Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeverRequest::fromGlobals only works on Apache #126

Closed
Tobion opened this issue Nov 1, 2016 · 2 comments
Closed

SeverRequest::fromGlobals only works on Apache #126

Tobion opened this issue Nov 1, 2016 · 2 comments

Comments

@Tobion
Copy link
Member

Tobion commented Nov 1, 2016

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

@HIXMAN
Copy link

HIXMAN commented Nov 23, 2016

This could probably works https://github.com/ralouphie/getallheaders

@lackovic10
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants