{"action":"created","issue":{"url":"https://api.github.com/repos/scalaj/scalaj-http/issues/101","repository_url":"https://api.github.com/repos/scalaj/scalaj-http","labels_url":"https://api.github.com/repos/scalaj/scalaj-http/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/scalaj/scalaj-http/issues/101/comments","events_url":"https://api.github.com/repos/scalaj/scalaj-http/issues/101/events","html_url":"https://github.com/scalaj/scalaj-http/issues/101","id":154182080,"number":101,"title":"toResponse uses standard GZIPInputstream.","user":{"login":"cirrus8-craig","id":17855792,"avatar_url":"https://avatars.githubusercontent.com/u/17855792?v=3","gravatar_id":"","url":"https://api.github.com/users/cirrus8-craig","html_url":"https://github.com/cirrus8-craig","followers_url":"https://api.github.com/users/cirrus8-craig/followers","following_url":"https://api.github.com/users/cirrus8-craig/following{/other_user}","gists_url":"https://api.github.com/users/cirrus8-craig/gists{/gist_id}","starred_url":"https://api.github.com/users/cirrus8-craig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cirrus8-craig/subscriptions","organizations_url":"https://api.github.com/users/cirrus8-craig/orgs","repos_url":"https://api.github.com/users/cirrus8-craig/repos","events_url":"https://api.github.com/users/cirrus8-craig/events{/privacy}","received_events_url":"https://api.github.com/users/cirrus8-craig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T07:57:50Z","updated_at":"2016-05-23T08:04:53Z","closed_at":null,"body":"The README has an example of processing an event stream but the parser is given a standard GZIPInputStream, which isn't really suitable. See the \"Gzip and Java\" section of [this page](https://dev.twitter.com/streaming/overview/processing) for more information. I'm not sure if this is something that should be changed in the code or just pointed out in the README. I can work on a pull req for this if desired. "},"comment":{"url":"https://api.github.com/repos/scalaj/scalaj-http/issues/comments/220912853","html_url":"https://github.com/scalaj/scalaj-http/issues/101#issuecomment-220912853","issue_url":"https://api.github.com/repos/scalaj/scalaj-http/issues/101","id":220912853,"user":{"login":"cirrus8-craig","id":17855792,"avatar_url":"https://avatars.githubusercontent.com/u/17855792?v=3","gravatar_id":"","url":"https://api.github.com/users/cirrus8-craig","html_url":"https://github.com/cirrus8-craig","followers_url":"https://api.github.com/users/cirrus8-craig/followers","following_url":"https://api.github.com/users/cirrus8-craig/following{/other_user}","gists_url":"https://api.github.com/users/cirrus8-craig/gists{/gist_id}","starred_url":"https://api.github.com/users/cirrus8-craig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cirrus8-craig/subscriptions","organizations_url":"https://api.github.com/users/cirrus8-craig/orgs","repos_url":"https://api.github.com/users/cirrus8-craig/repos","events_url":"https://api.github.com/users/cirrus8-craig/events{/privacy}","received_events_url":"https://api.github.com/users/cirrus8-craig/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T08:04:53Z","updated_at":"2016-05-23T08:04:53Z","body":"When I try consuming a twitter stream that doesn't immediately have anything to give me it hangs indefinitely without responding to any new input. My workaround was to add a 'noStreamZip' setting to HttpOptions that gets checked in toResponse when it decides which stream type to give. If it's set it just gives back the inputstream without wrapping it in the GZIP. I then wrap it myself as suggested on the twitter page."}}
{"actor":{"display_login":"cirrus8-craig"}}