{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/9940","labels_url":"https://api.github.com/repos/rails/rails/issues/9940/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/9940/comments","events_url":"https://api.github.com/repos/rails/rails/issues/9940/events","html_url":"https://github.com/rails/rails/issues/9940","id":12469627,"number":9940,"title":"Multiple accept headers' specificity is misinterpreted","user":{"login":"ekampp","id":40206,"avatar_url":"https://avatars.githubusercontent.com/u/40206?v=3","gravatar_id":"","url":"https://api.github.com/users/ekampp","html_url":"https://github.com/ekampp","followers_url":"https://api.github.com/users/ekampp/followers","following_url":"https://api.github.com/users/ekampp/following{/other_user}","gists_url":"https://api.github.com/users/ekampp/gists{/gist_id}","starred_url":"https://api.github.com/users/ekampp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekampp/subscriptions","organizations_url":"https://api.github.com/users/ekampp/orgs","repos_url":"https://api.github.com/users/ekampp/repos","events_url":"https://api.github.com/users/ekampp/events{/privacy}","received_events_url":"https://api.github.com/users/ekampp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/actionpack","name":"actionpack","color":"FFF700"},{"url":"https://api.github.com/repos/rails/rails/labels/stale","name":"stale","color":"444444"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":66,"created_at":"2013-03-26T20:29:27Z","updated_at":"2015-08-25T06:02:32Z","closed_at":"2015-08-25T06:02:31Z","body":"The HTTP standard clearly states that higher specificity mime-types should take precedence, when multiple mimetypes is supplied. This is not the case with the current version of rails (cloned of master branch).\r\n\r\n    curl http://localhost:3000/entries --header \"Accept:application/json, text/plain\"\r\n\r\nshould return json, and in fact does so. While\r\n\r\n    curl http://localhost:3000/entries --header \"Accept:application/json, text/plain, */*\"\r\n\r\nshould still return json, since the `*/*` is less specific, but this returns html.\r\n\r\nHere is [a test application](https://github.com/ekampp/accept-header-specificity-test) where this can be tested."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/134490793","html_url":"https://github.com/rails/rails/issues/9940#issuecomment-134490793","issue_url":"https://api.github.com/repos/rails/rails/issues/9940","id":134490793,"user":{"login":"rails-bot","id":7468109,"avatar_url":"https://avatars.githubusercontent.com/u/7468109?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-bot","html_url":"https://github.com/rails-bot","followers_url":"https://api.github.com/users/rails-bot/followers","following_url":"https://api.github.com/users/rails-bot/following{/other_user}","gists_url":"https://api.github.com/users/rails-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-bot/subscriptions","organizations_url":"https://api.github.com/users/rails-bot/orgs","repos_url":"https://api.github.com/users/rails-bot/repos","events_url":"https://api.github.com/users/rails-bot/events{/privacy}","received_events_url":"https://api.github.com/users/rails-bot/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T06:02:32Z","updated_at":"2015-08-25T06:02:32Z","body":"This issue has been automatically closed because of inactivity.\n\nIf you can still reproduce this error on the `4-2-stable`, `4-1-stable` branches or on `master`,\nplease reply with all of the information you have about it in order to keep the issue open.\n\nThank you for all your contributions.\n"}}