QtNetwork: handle raw deflate compressed data in Http.
authorMartin Petersson <Martin.Petersson@nokia.com>
Thu, 31 May 2012 12:42:32 +0000 (14:42 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 1 Jun 2012 13:57:18 +0000 (15:57 +0200)
commit4189d07c837e66f4cda92820477f5fb0e3d9315c
tree982e993af5b1a4a8a791bf120cc0bd90d5b5970c
parentd744b24fab64e24eb11658e6eb617e7b5980ad40
QtNetwork: handle raw deflate compressed data in Http.

For raw deflate compressed data with no zlib or gzip header
we need to call initInflate2 with -MAX_WBITS.

The first call to inflate will asume that the data has a header,
but if that call fails with a Z_DATA_ERROR we can try once more
with changed windowBits incase the data was raw compressed data
without a header.

Task-number: QTBUG-25513
Change-Id: Ib37c286c6da6d5395581717d0e76a0dbd5df289c
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/access/qhttpnetworkreply.cpp