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

Headers are case-insensitive — don't let Content-Type be overridden if written in an unusual case #95

Closed
wants to merge 2 commits into from

Conversation

matthew-andrews
Copy link

According to RFC 2616 - "Hypertext Transfer Protocol -- HTTP/1.1", paragraph 4.2, "Message Headers" http headers are case insensitive.

This became a problem for us as we use node-XMLHttpRequest in conjunction with Fetch API and this change: JakeChampion/fetch#45 caused.

@matthew-andrews
Copy link
Author

[Also sorry for not updating the tests… i couldn't get them to run for me :/… and I'm sorry for the complexity of the solution… there's probably a simpler way…]

@jsh2134
Copy link

jsh2134 commented Apr 16, 2015

👍

@jercoh
Copy link

jercoh commented Apr 16, 2015

Useful pull request!

@driverdan
Copy link
Owner

Fixed in #137.

@driverdan driverdan closed this Feb 23, 2018
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.

4 participants