{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/wai/issues/536","repository_url":"https://api.github.com/repos/yesodweb/wai","labels_url":"https://api.github.com/repos/yesodweb/wai/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/wai/issues/536/comments","events_url":"https://api.github.com/repos/yesodweb/wai/issues/536/events","html_url":"https://github.com/yesodweb/wai/issues/536","id":149965718,"number":536,"title":"wai-extra Gzip doesn't appear to compress output","user":{"login":"axman6","id":39567,"avatar_url":"https://avatars.githubusercontent.com/u/39567?v=3","gravatar_id":"","url":"https://api.github.com/users/axman6","html_url":"https://github.com/axman6","followers_url":"https://api.github.com/users/axman6/followers","following_url":"https://api.github.com/users/axman6/following{/other_user}","gists_url":"https://api.github.com/users/axman6/gists{/gist_id}","starred_url":"https://api.github.com/users/axman6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axman6/subscriptions","organizations_url":"https://api.github.com/users/axman6/orgs","repos_url":"https://api.github.com/users/axman6/repos","events_url":"https://api.github.com/users/axman6/events{/privacy}","received_events_url":"https://api.github.com/users/axman6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-21T04:45:48Z","updated_at":"2016-04-27T11:50:37Z","closed_at":null,"body":"I'm building a simple web app which produces highly compressible data as CSVs using the servant-cassava package (uncompressed size is over 6MB so should definitely be compressed). I'm finding that when using the gzip middleware, our content is marked as being encoded as gzip, but is not reduced in size at all. The content type of the result is `text/csv;charset=utf-8`, which appears to be covered by the `text/` check.\r\n\r\nAlso the documentation in the module is very unhelpful, it took reading the source code to find out that it was actually possible to set the values of `GzipSettings` - just export `GzipSettings{..}` instead of exporting the accessors separately.\r\n\r\nSadly this app isn't likely to be open source for quite a while, but I may be able to make a minimal example if necessary."},"comment":{"url":"https://api.github.com/repos/yesodweb/wai/issues/comments/215059170","html_url":"https://github.com/yesodweb/wai/issues/536#issuecomment-215059170","issue_url":"https://api.github.com/repos/yesodweb/wai/issues/536","id":215059170,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T11:50:37Z","updated_at":"2016-04-27T11:50:37Z","body":"> Looking at the code, the GzipCompress constructor of GzipFiles isn't actually used anywhere, what is it even supposed to do?\r\n\r\nI reviewed the code again, and in fact `GzipCompress` _is_ used via the fall-through on line 92. But the code is very difficult to parse. I'm going to test a theory..."}}