diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2011-07-05 15:32:54 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2011-07-05 15:57:30 (GMT) |
commit | cc504be6500911d9109f513a60c8116cacb39fe4 (patch) | |
tree | 8726c5000ed664be7baeec295e4e0a8e14f15d06 | |
parent | b487fb1cc1a3be4a197ec458fc3b575d7b57d6a5 (diff) | |
download | Qt-cc504be6500911d9109f513a60c8116cacb39fe4.zip Qt-cc504be6500911d9109f513a60c8116cacb39fe4.tar.gz Qt-cc504be6500911d9109f513a60c8116cacb39fe4.tar.bz2 |
HTTP internals: continue gzip decompression if buffer fills exactly
Reviewed-by: Markus Goetz
Reviewed-by: Prasanth Ullattil
Task-number: QTBUG-12908
-rw-r--r-- | src/network/access/qhttpnetworkreply.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkreply.cpp b/src/network/access/qhttpnetworkreply.cpp index 01360d5..0f2fcba 100644 --- a/src/network/access/qhttpnetworkreply.cpp +++ b/src/network/access/qhttpnetworkreply.cpp @@ -431,7 +431,7 @@ int QHttpNetworkReplyPrivate::gunzipBodyPartially(QByteArray &compressed, QByteA } have = sizeof(out) - inflateStrm.avail_out; inflated.append(QByteArray((const char *)out, have)); - } while (inflateStrm.avail_out == 0); + } while (inflateStrm.avail_out == 0 && inflateStrm.avail_in > 0); // clean up and return if (ret <= Z_ERRNO || ret == Z_STREAM_END) { gunzipBodyPartiallyEnd(); |