diff -r 56cd8111b7f7 -r 41300fa6a67c src/network/access/qhttpnetworkreply.cpp --- a/src/network/access/qhttpnetworkreply.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/src/network/access/qhttpnetworkreply.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -239,7 +239,7 @@ bool QHttpNetworkReplyPrivate::isGzipped() { QByteArray encoding = headerField("content-encoding"); - return encoding.toLower() == "gzip"; + return qstricmp(encoding.constData(), "gzip") == 0; } void QHttpNetworkReplyPrivate::removeAutoDecompressHeader() @@ -247,11 +247,10 @@ // The header "Content-Encoding = gzip" is retained. // Content-Length is removed since the actual one send by the server is for compressed data QByteArray name("content-length"); - QByteArray lowerName = name.toLower(); QList >::Iterator it = fields.begin(), end = fields.end(); while (it != end) { - if (name == it->first.toLower()) { + if (qstricmp(name.constData(), it->first.constData()) == 0) { fields.erase(it); break; } @@ -269,6 +268,7 @@ QList challenges = headerFieldValues(header); for (int i = 0; i