{"action":"created","issue":{"url":"https://api.github.com/repos/dghubble/sling/issues/14","repository_url":"https://api.github.com/repos/dghubble/sling","labels_url":"https://api.github.com/repos/dghubble/sling/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/dghubble/sling/issues/14/comments","events_url":"https://api.github.com/repos/dghubble/sling/issues/14/events","html_url":"https://github.com/dghubble/sling/pull/14","id":157342342,"number":14,"title":"JSON body is not decoded when Content-Type: application/json is not present","user":{"login":"derlaft","id":852606,"avatar_url":"https://avatars.githubusercontent.com/u/852606?v=3","gravatar_id":"","url":"https://api.github.com/users/derlaft","html_url":"https://github.com/derlaft","followers_url":"https://api.github.com/users/derlaft/followers","following_url":"https://api.github.com/users/derlaft/following{/other_user}","gists_url":"https://api.github.com/users/derlaft/gists{/gist_id}","starred_url":"https://api.github.com/users/derlaft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derlaft/subscriptions","organizations_url":"https://api.github.com/users/derlaft/orgs","repos_url":"https://api.github.com/users/derlaft/repos","events_url":"https://api.github.com/users/derlaft/events{/privacy}","received_events_url":"https://api.github.com/users/derlaft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-28T14:55:27Z","updated_at":"2016-05-30T17:44:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dghubble/sling/pulls/14","html_url":"https://github.com/dghubble/sling/pull/14","diff_url":"https://github.com/dghubble/sling/pull/14.diff","patch_url":"https://github.com/dghubble/sling/pull/14.patch"},"body":"Thus, I think this is logical to decode JSON whether header is set or not, because user must explicitly pass successV/failureV. \r\n\r\nBroken test defines current behaviour, If you agree I will fix it too."},"comment":{"url":"https://api.github.com/repos/dghubble/sling/issues/comments/222533222","html_url":"https://github.com/dghubble/sling/pull/14#issuecomment-222533222","issue_url":"https://api.github.com/repos/dghubble/sling/issues/14","id":222533222,"user":{"login":"derlaft","id":852606,"avatar_url":"https://avatars.githubusercontent.com/u/852606?v=3","gravatar_id":"","url":"https://api.github.com/users/derlaft","html_url":"https://github.com/derlaft","followers_url":"https://api.github.com/users/derlaft/followers","following_url":"https://api.github.com/users/derlaft/following{/other_user}","gists_url":"https://api.github.com/users/derlaft/gists{/gist_id}","starred_url":"https://api.github.com/users/derlaft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derlaft/subscriptions","organizations_url":"https://api.github.com/users/derlaft/orgs","repos_url":"https://api.github.com/users/derlaft/repos","events_url":"https://api.github.com/users/derlaft/events{/privacy}","received_events_url":"https://api.github.com/users/derlaft/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T17:44:19Z","updated_at":"2016-05-30T17:44:19Z","body":"@dghubble My server app ignores Accept header and always answers with 'Content-Type: text/plain'\r\n\r\n>JSON responses should have a ContentType: \"application/json\", this is an intentional check.\r\n\r\nWhy should they? It's clients that are developed for use with servers, not the opposite."}}
{"actor":{"display_login":"derlaft"}}