summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-07-21 12:16:12 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-07-21 12:16:42 (GMT)
commitc5e9b0238f0bfe0b8e2c415078011c6d6b34fb11 (patch)
tree79b3bf2ec0b30bbfa41802ffd9255b950cc6c477
parent7624741ce0d2ab709f7a7418632c3e7969f536a6 (diff)
downloadQt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.zip
Qt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.tar.gz
Qt-c5e9b0238f0bfe0b8e2c415078011c6d6b34fb11.tar.bz2
QHttpNetworkConnection: Clarifying code comment about compression
Reviewed-by: TrustMe
-rw-r--r--src/network/access/qhttpnetworkconnection.cpp7
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