summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-07-21 14:16:12 +0200
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-07-21 14:16:42 +0200
commitc5e9b0238f0bfe0b8e2c415078011c6d6b34fb11 (patch)
tree79b3bf2ec0b30bbfa41802ffd9255b950cc6c477 /src
parent7624741ce0d2ab709f7a7418632c3e7969f536a6 (diff)
QHttpNetworkConnection: Clarifying code comment about compression
Reviewed-by: TrustMe
Diffstat (limited to 'src')
-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 726b95491c..2169f97184 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