{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/594","labels_url":"https://api.github.com/repos/erlang/otp/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/594/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/594/events","html_url":"https://github.com/erlang/otp/pull/594","id":54984041,"number":594,"title":"inets: send correct nonstreamed response with streaming","user":{"login":"qrilka","id":70110,"avatar_url":"https://avatars.githubusercontent.com/u/70110?v=3","gravatar_id":"","url":"https://api.github.com/users/qrilka","html_url":"https://github.com/qrilka","followers_url":"https://api.github.com/users/qrilka/followers","following_url":"https://api.github.com/users/qrilka/following{/other_user}","gists_url":"https://api.github.com/users/qrilka/gists{/gist_id}","starred_url":"https://api.github.com/users/qrilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrilka/subscriptions","organizations_url":"https://api.github.com/users/qrilka/orgs","repos_url":"https://api.github.com/users/qrilka/repos","events_url":"https://api.github.com/users/qrilka/events{/privacy}","received_events_url":"https://api.github.com/users/qrilka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-21T06:48:16Z","updated_at":"2015-01-30T16:19:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/594","html_url":"https://github.com/erlang/otp/pull/594","diff_url":"https://github.com/erlang/otp/pull/594.diff","patch_url":"https://github.com/erlang/otp/pull/594.patch"},"body":"httpc_handler should respond with correct and complete\r\nresponses seeing non-streamed status codes i.e. codes\r\nother than 200 or 206."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/72226257","html_url":"https://github.com/erlang/otp/pull/594#issuecomment-72226257","issue_url":"https://api.github.com/repos/erlang/otp/issues/594","id":72226257,"user":{"login":"IngelaAndin","id":294507,"avatar_url":"https://avatars.githubusercontent.com/u/294507?v=3","gravatar_id":"","url":"https://api.github.com/users/IngelaAndin","html_url":"https://github.com/IngelaAndin","followers_url":"https://api.github.com/users/IngelaAndin/followers","following_url":"https://api.github.com/users/IngelaAndin/following{/other_user}","gists_url":"https://api.github.com/users/IngelaAndin/gists{/gist_id}","starred_url":"https://api.github.com/users/IngelaAndin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngelaAndin/subscriptions","organizations_url":"https://api.github.com/users/IngelaAndin/orgs","repos_url":"https://api.github.com/users/IngelaAndin/repos","events_url":"https://api.github.com/users/IngelaAndin/events{/privacy}","received_events_url":"https://api.github.com/users/IngelaAndin/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T16:19:16Z","updated_at":"2015-01-30T16:19:16Z","body":"Hum... I do not remember the reason why only 200 and 206 responses are streamed. The documentation says it works like that though. Refreshing my HTTP knowledge the only reasonable thing I can think of is that only \"successful\" requests are streamed, and possible bodies received with error status codes are probably short and sent together with the error status.  "}}