{"action":"created","issue":{"url":"https://api.github.com/repos/substack/http-browserify/issues/98","repository_url":"https://api.github.com/repos/substack/http-browserify","labels_url":"https://api.github.com/repos/substack/http-browserify/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/substack/http-browserify/issues/98/comments","events_url":"https://api.github.com/repos/substack/http-browserify/issues/98/events","html_url":"https://github.com/substack/http-browserify/pull/98","id":142810592,"number":98,"title":"Maintain request header casing.","user":{"login":"elyobo","id":407806,"avatar_url":"https://avatars.githubusercontent.com/u/407806?v=3","gravatar_id":"","url":"https://api.github.com/users/elyobo","html_url":"https://github.com/elyobo","followers_url":"https://api.github.com/users/elyobo/followers","following_url":"https://api.github.com/users/elyobo/following{/other_user}","gists_url":"https://api.github.com/users/elyobo/gists{/gist_id}","starred_url":"https://api.github.com/users/elyobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyobo/subscriptions","organizations_url":"https://api.github.com/users/elyobo/orgs","repos_url":"https://api.github.com/users/elyobo/repos","events_url":"https://api.github.com/users/elyobo/events{/privacy}","received_events_url":"https://api.github.com/users/elyobo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T23:29:06Z","updated_at":"2016-03-23T00:11:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/substack/http-browserify/pulls/98","html_url":"https://github.com/substack/http-browserify/pull/98","diff_url":"https://github.com/substack/http-browserify/pull/98.diff","patch_url":"https://github.com/substack/http-browserify/pull/98.patch"},"body":"While headers are meant to be case sensitive, many servers do not\r\nrespect this.  Node maintains the casing of the request headers in order\r\nto work with this and http-browserify should do likewise in order to be\r\nconsistent with the node implementation.\r\n\r\nThis patch maintains the casing with which the header was last set, e.g.\r\nsetting header \"fOo\", then header \"Foo\" will still only send one header,\r\nbut will use the final casing \"Foo\".  My understanding is that this\r\nmatches the node implementation (as described in\r\nhttps://groups.google.com/forum/#!topic/nodejs/XIU55IYtfJo)."},"comment":{"url":"https://api.github.com/repos/substack/http-browserify/issues/comments/200089489","html_url":"https://github.com/substack/http-browserify/pull/98#issuecomment-200089489","issue_url":"https://api.github.com/repos/substack/http-browserify/issues/98","id":200089489,"user":{"login":"elyobo","id":407806,"avatar_url":"https://avatars.githubusercontent.com/u/407806?v=3","gravatar_id":"","url":"https://api.github.com/users/elyobo","html_url":"https://github.com/elyobo","followers_url":"https://api.github.com/users/elyobo/followers","following_url":"https://api.github.com/users/elyobo/following{/other_user}","gists_url":"https://api.github.com/users/elyobo/gists{/gist_id}","starred_url":"https://api.github.com/users/elyobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyobo/subscriptions","organizations_url":"https://api.github.com/users/elyobo/orgs","repos_url":"https://api.github.com/users/elyobo/repos","events_url":"https://api.github.com/users/elyobo/events{/privacy}","received_events_url":"https://api.github.com/users/elyobo/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T00:11:47Z","updated_at":"2016-03-23T00:11:47Z","body":"Added tests.\r\n\r\nNote that this fix maintains the case insensitive access (to set, get and delete) but still sends the headers in the case given."}}