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

Make Headers#get case insensitive #45

Closed
jhollingworth opened this issue Dec 22, 2014 · 1 comment
Closed

Make Headers#get case insensitive #45

jhollingworth opened this issue Dec 22, 2014 · 1 comment

Comments

@jhollingworth
Copy link

According to RFC 2616 - "Hypertext Transfer Protocol -- HTTP/1.1", paragraph 4.2, "Message Headers" http headers are case insensitive. It would be handy if the Headers#get encapsulated this for you. So this would work:

res.headers.get('cOnTeNt-tYpe')
@josh
Copy link
Contributor

josh commented Jan 12, 2015

734106e

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

No branches or pull requests

2 participants