{"action":"created","issue":{"url":"https://api.github.com/repos/checkmate/simpl/issues/77","labels_url":"https://api.github.com/repos/checkmate/simpl/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/checkmate/simpl/issues/77/comments","events_url":"https://api.github.com/repos/checkmate/simpl/issues/77/events","html_url":"https://github.com/checkmate/simpl/pull/77","id":102182956,"number":77,"title":"fix(rest): 416 on unexpected content-types","user":{"login":"larsbutler","id":464394,"avatar_url":"https://avatars.githubusercontent.com/u/464394?v=3","gravatar_id":"","url":"https://api.github.com/users/larsbutler","html_url":"https://github.com/larsbutler","followers_url":"https://api.github.com/users/larsbutler/followers","following_url":"https://api.github.com/users/larsbutler/following{/other_user}","gists_url":"https://api.github.com/users/larsbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/larsbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsbutler/subscriptions","organizations_url":"https://api.github.com/users/larsbutler/orgs","repos_url":"https://api.github.com/users/larsbutler/repos","events_url":"https://api.github.com/users/larsbutler/events{/privacy}","received_events_url":"https://api.github.com/users/larsbutler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/checkmate/simpl/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-20T16:55:48Z","updated_at":"2015-08-20T18:19:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/checkmate/simpl/pulls/77","html_url":"https://github.com/checkmate/simpl/pull/77","diff_url":"https://github.com/checkmate/simpl/pull/77.diff","patch_url":"https://github.com/checkmate/simpl/pull/77.patch"},"body":"Because this explicit error isn't raised, I found subtle bugs in an\r\napplication that uses this. If the client forgot to specify the\r\ncontent-type in the request header, the server would process the request\r\nas if everything was fine, except that it would ignore the content. The\r\nwas leading to incorrect behavior in the server application."},"comment":{"url":"https://api.github.com/repos/checkmate/simpl/issues/comments/133106629","html_url":"https://github.com/checkmate/simpl/pull/77#issuecomment-133106629","issue_url":"https://api.github.com/repos/checkmate/simpl/issues/77","id":133106629,"user":{"login":"ziadsawalha","id":729918,"avatar_url":"https://avatars.githubusercontent.com/u/729918?v=3","gravatar_id":"","url":"https://api.github.com/users/ziadsawalha","html_url":"https://github.com/ziadsawalha","followers_url":"https://api.github.com/users/ziadsawalha/followers","following_url":"https://api.github.com/users/ziadsawalha/following{/other_user}","gists_url":"https://api.github.com/users/ziadsawalha/gists{/gist_id}","starred_url":"https://api.github.com/users/ziadsawalha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziadsawalha/subscriptions","organizations_url":"https://api.github.com/users/ziadsawalha/orgs","repos_url":"https://api.github.com/users/ziadsawalha/repos","events_url":"https://api.github.com/users/ziadsawalha/events{/privacy}","received_events_url":"https://api.github.com/users/ziadsawalha/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T18:19:13Z","updated_at":"2015-08-20T18:19:13Z","body":"_Should_ we support a POST without Content-Type? We could do that by not using bottle's `.json`...\r\n"}}