{"action":"opened","issue":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/556","repository_url":"https://api.github.com/repos/apiaryio/dredd","labels_url":"https://api.github.com/repos/apiaryio/dredd/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/dredd/issues/556/comments","events_url":"https://api.github.com/repos/apiaryio/dredd/issues/556/events","html_url":"https://github.com/apiaryio/dredd/issues/556","id":164793285,"number":556,"title":"Do not validate body if response content-length is zero","user":{"login":"netmilk","id":79609,"avatar_url":"https://avatars.githubusercontent.com/u/79609?v=3","gravatar_id":"","url":"https://api.github.com/users/netmilk","html_url":"https://github.com/netmilk","followers_url":"https://api.github.com/users/netmilk/followers","following_url":"https://api.github.com/users/netmilk/following{/other_user}","gists_url":"https://api.github.com/users/netmilk/gists{/gist_id}","starred_url":"https://api.github.com/users/netmilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netmilk/subscriptions","organizations_url":"https://api.github.com/users/netmilk/orgs","repos_url":"https://api.github.com/users/netmilk/repos","events_url":"https://api.github.com/users/netmilk/events{/privacy}","received_events_url":"https://api.github.com/users/netmilk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-11T09:17:54Z","updated_at":"2016-07-11T09:17:54Z","closed_at":null,"body":"I propose to do not try to parse and validate the body response in case the response `content-length` header value is `0` and the expected `body` or `bodySchema` is empty.\r\n\r\nAt the moment when your API response has JSON content type (`application/json` etc) but empty body (empty string - zero characters) Dredd tries to parse the body and it results slightly not understandable error `fail: body: Real body \"Content-Type\" header is \"application/json\" but body is not a parseble JSON.`\r\n\r\nThe zero `content-length` header is indicating the intent to do not send any data and we shouldn't expect any and assume it's ok."}}
{"actor":{"display_login":"netmilk"}}