[Haskell-cafe] Decompressing and http-enumerator

Erik de Castro Lopo mle+hs at mega-nerd.com
Mon Aug 29 12:16:09 CEST 2011

Brandon Allbery wrote:

> On Mon, Aug 29, 2011 at 04:08, Michael Snoyman <michael at snoyman.com> wrote:
> > So one possible solution is to just add an option to never decompress
> > response bodies, but that's a bit of a hack. The real question is:
> > what's the correct way to handle these tarballs? Web browsers seem to
> > know not to decompress them, but AFAICT http-enumerator is correctly
> > following the spec by decompressing. Another possibility is to
> >
> "Seem to" is pretty much correct; it took years for some browsers to
> reliably handle them correctly.  (Anyone else remember Mozilla saving
> compressed tarballs uncompressed?)

Yes, it was a pain in the neck.

Erik de Castro Lopo

More information about the Haskell-Cafe mailing list