On Tue, Jul 19, 2011 at 9:57 AM, Jesse Phillips <jessekphillip...@gmail.com>wrote:
> Andrew Wiley Wrote: > > > I know, but if you look at the docs for the inflate functions, zlib is > > supposed to be autodetecting the gzip header and uncompressing the > payload > > correctly, if I understand the documentation (which I probably don't at > this > > point). > > Not sure what documentation you are talking of. But it doesn't sound like > it does auto detection, an answer to one of the question: > > "You can request that deflate write the gzip format instead of the zlib > format using deflateInit2(). You can also request that inflate decode the > gzip format using inflateInit2(). Read zlib.h for more details." > Ah, I stand corrected: "inflate() can decompress and check either zlib-wrapped or gzip-wrapped deflate data. The header type is detected automatically, if requested when initializing with inflateInit2()."