diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-07-21 12:16:12 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-07-21 12:16:42 (GMT) |
commit | c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11 (patch) | |
tree | 79b3bf2ec0b30bbfa41802ffd9255b950cc6c477 /src/network/access | |
parent | 7624741ce0d2ab709f7a7418632c3e7969f536a6 (diff) | |
download | Qt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.zip Qt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.tar.gz Qt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.tar.bz2 |
QHttpNetworkConnection: Clarifying code comment about compression
Reviewed-by: TrustMe
Diffstat (limited to 'src/network/access')
-rw-r--r-- | src/network/access/qhttpnetworkconnection.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index 726b954..2169f97 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -228,7 +228,12 @@ void QHttpNetworkConnectionPrivate::prepareRequest(HttpMessagePair &messagePair) #ifndef QT_NO_NETWORKPROXY } #endif - // set the gzip header + + // If the request had a accept-encoding set, we better not mess + // with it. If it was not set, we announce that we understand gzip + // and remember this fact in request.d->autoDecompress so that + // we can later decompress the HTTP reply if it has such an + // encoding. value = request.headerField("accept-encoding"); if (value.isEmpty()) { #ifndef QT_NO_COMPRESS |