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

Request implementation doesn't consider that HTTP headers are case-insensitive #108

Closed
wants to merge 5 commits into from

Conversation

nsilvah
Copy link

@nsilvah nsilvah commented Oct 26, 2013

According to RFC2616, HTTP headers are case-insensitive.

For example, when using Google OAuth2 Playground to test my server, it fails because Google OAuth2 Playground send the "Authorization" header as "authorization".

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 343b59f on ChupacabrasX:master into 4a71c37 on php-loep:develop.

@alexbilbie
Copy link
Contributor

The request class already normalises the headers

@alexbilbie alexbilbie closed this Nov 25, 2013
@nsilvah
Copy link
Author

nsilvah commented Nov 26, 2013

Nope, it doesn't. You only are normalizing the headers when the getallheaders function doesn't exist. The getallheaders function doesn't normalize the headers.

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

Successfully merging this pull request may close these issues.

3 participants