{"action":"created","issue":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/857","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/857/labels{/name}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/857/comments","events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/857/events","html_url":"https://github.com/AntennaPod/AntennaPod/pull/857","id":84467770,"number":857,"title":"Fixes \"gzip finished without exhausting source\" error","user":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T09:47:05Z","updated_at":"2015-06-03T12:03:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/857","html_url":"https://github.com/AntennaPod/AntennaPod/pull/857","diff_url":"https://github.com/AntennaPod/AntennaPod/pull/857.diff","patch_url":"https://github.com/AntennaPod/AntennaPod/pull/857.patch"},"body":"Resolves #854\r\n\r\nI can only guess what exactly goes wrong here.\r\nMy guess is that okhttp either has a bug in its un-gzip and throws an error although the data was read correctly - or the server does not comply with some standard (e.g. there is no content-length field).\r\n\r\nCatching the exception and just continuing as if nothing happened seems to work.\r\n\r\nNot sure if additional checks would do any good. We could check the content length if it is sent by the server, but a lot of servers seem to get that wrong (sending the content length of the unzipped data)"},"comment":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/comments/108343444","html_url":"https://github.com/AntennaPod/AntennaPod/pull/857#issuecomment-108343444","issue_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/857","id":108343444,"user":{"login":"HolgerJeromin","id":2410353,"avatar_url":"https://avatars.githubusercontent.com/u/2410353?v=3","gravatar_id":"","url":"https://api.github.com/users/HolgerJeromin","html_url":"https://github.com/HolgerJeromin","followers_url":"https://api.github.com/users/HolgerJeromin/followers","following_url":"https://api.github.com/users/HolgerJeromin/following{/other_user}","gists_url":"https://api.github.com/users/HolgerJeromin/gists{/gist_id}","starred_url":"https://api.github.com/users/HolgerJeromin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolgerJeromin/subscriptions","organizations_url":"https://api.github.com/users/HolgerJeromin/orgs","repos_url":"https://api.github.com/users/HolgerJeromin/repos","events_url":"https://api.github.com/users/HolgerJeromin/events{/privacy}","received_events_url":"https://api.github.com/users/HolgerJeromin/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T12:03:29Z","updated_at":"2015-06-03T12:03:29Z","body":"Thank you for your quick response.\r\nThe length header is optional. The [new http RFC](https://tools.ietf.org/html/rfc7230#section-3.3.2) makes this clear:\r\n\r\n    When a message does not have a Transfer-Encoding header field, a \r\n    Content-Length header field can provide the anticipated size\r\n\r\nThis is surprising to me... (see also [section 3.3.3](https://tools.ietf.org/html/rfc7230#section-3.3.3))"}}