{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/643","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/643/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/643/events","html_url":"https://github.com/phoenixframework/phoenix/pull/643","id":59344704,"number":643,"title":"Improve content-type negotiation","user":{"login":"oneeman","id":4543438,"avatar_url":"https://avatars.githubusercontent.com/u/4543438?v=3","gravatar_id":"","url":"https://api.github.com/users/oneeman","html_url":"https://github.com/oneeman","followers_url":"https://api.github.com/users/oneeman/followers","following_url":"https://api.github.com/users/oneeman/following{/other_user}","gists_url":"https://api.github.com/users/oneeman/gists{/gist_id}","starred_url":"https://api.github.com/users/oneeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneeman/subscriptions","organizations_url":"https://api.github.com/users/oneeman/orgs","repos_url":"https://api.github.com/users/oneeman/repos","events_url":"https://api.github.com/users/oneeman/events{/privacy}","received_events_url":"https://api.github.com/users/oneeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T15:06:54Z","updated_at":"2015-02-28T15:09:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phoenixframework/phoenix/pulls/643","html_url":"https://github.com/phoenixframework/phoenix/pull/643","diff_url":"https://github.com/phoenixframework/phoenix/pull/643.diff","patch_url":"https://github.com/phoenixframework/phoenix/pull/643.patch"},"body":"Do not fall back to html due to `*/*` if it has a `q` value other than 1\r\n\r\nThis bug was pointed out in the IRC channel by @tmjoen.  jQuery includes `*/*; q=0.01` on its headers, which was causing Phoenix to fall back to html in spite of the q value.  This PR adds a failing test and a fix.\r\n\r\nFor reference, see:\r\n\r\nhttp://bugs.jquery.com/ticket/12250 \r\nand\r\nhttps://github.com/jquery/jquery/blob/master/src/ajax.js#L594-L601\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/76529664","html_url":"https://github.com/phoenixframework/phoenix/pull/643#issuecomment-76529664","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/643","id":76529664,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T15:09:40Z","updated_at":"2015-02-28T15:09:40Z","body":"http://www.newmediacampaigns.com/blog/browser-rest-http-accept-headers"}}