Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While headers are meant to be case sensitive, many servers do not respect this. Node maintains the casing of the request headers in order to work with this and http-browserify should do likewise in order to be consistent with the node implementation. This patch maintains the casing with which the header was last set, e.g. setting header "fOo", then header "Foo" will still only send one header, but will use the final casing "Foo". My understanding is that this matches the node implementation (as described in https://groups.google.com/forum/#!topic/nodejs/XIU55IYtfJo).
- Loading branch information