{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1476","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1476/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1476/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1476/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1476","id":127259651,"number":1476,"title":"Phoenix returns lower-cased HTTP headers breaking jQuery auto-parsing","user":{"login":"qertoip","id":109363,"avatar_url":"https://avatars.githubusercontent.com/u/109363?v=3","gravatar_id":"","url":"https://api.github.com/users/qertoip","html_url":"https://github.com/qertoip","followers_url":"https://api.github.com/users/qertoip/followers","following_url":"https://api.github.com/users/qertoip/following{/other_user}","gists_url":"https://api.github.com/users/qertoip/gists{/gist_id}","starred_url":"https://api.github.com/users/qertoip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qertoip/subscriptions","organizations_url":"https://api.github.com/users/qertoip/orgs","repos_url":"https://api.github.com/users/qertoip/repos","events_url":"https://api.github.com/users/qertoip/events{/privacy}","received_events_url":"https://api.github.com/users/qertoip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T16:16:50Z","updated_at":"2016-01-18T17:29:26Z","closed_at":null,"body":"Lowercase HTTP headers used by Phoenix are perfectly fine according to RFC 7230 but not very practical in the real world.\r\n\r\nFor one they break jQuery auto-parsing as it assumes \"Content-Type\" and not \"content-type\". While  formally it's a jQuery bug no one except Phoenix developers seem to have ever been affected as the bug is still present in the latest jQuery.\r\n\r\nAll major knowledge sources including Wikipedia list HTTP headers capitalized.\r\n\r\nAs the common belief is that they should be capitalized many HTTP clients are likely to assume the same and be broken by Phoenix choice.\r\n\r\nWhat do you think / should I try to submit a patch?"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/172599204","html_url":"https://github.com/phoenixframework/phoenix/issues/1476#issuecomment-172599204","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1476","id":172599204,"user":{"login":"qertoip","id":109363,"avatar_url":"https://avatars.githubusercontent.com/u/109363?v=3","gravatar_id":"","url":"https://api.github.com/users/qertoip","html_url":"https://github.com/qertoip","followers_url":"https://api.github.com/users/qertoip/followers","following_url":"https://api.github.com/users/qertoip/following{/other_user}","gists_url":"https://api.github.com/users/qertoip/gists{/gist_id}","starred_url":"https://api.github.com/users/qertoip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qertoip/subscriptions","organizations_url":"https://api.github.com/users/qertoip/orgs","repos_url":"https://api.github.com/users/qertoip/repos","events_url":"https://api.github.com/users/qertoip/events{/privacy}","received_events_url":"https://api.github.com/users/qertoip/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T17:29:26Z","updated_at":"2016-01-18T17:29:26Z","body":"I'm afraid jQuery is just a tip of the iceberg.\r\n\r\nWe will likely face an uphill battle trying to fix all HTTP clients in the world as everyone seems to be naively using capitalized headers.\r\n\r\nBesides lowercase headers just seem awkward.\r\n\r\nFor me it is a Phoenix usability issue. I have lost about an hour hunting the bug in my app just to find it being a combination of jQuery and Phoenix and not in my code.\r\n\r\nKindly please reconsider from usability standpoint."}}