summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-10 09:16:10 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-10 09:16:10 (GMT)
commitbd47ffa5deeb2489e47d90d1110c435dc68d4f30 (patch)
tree09e35a6ac8c81b2ad912b0d6a5e18aace3ae4ccf /src/network
parenta8e0e5656f09130e68c10209429a0870b38248c4 (diff)
downloadQt-bd47ffa5deeb2489e47d90d1110c435dc68d4f30.zip
Qt-bd47ffa5deeb2489e47d90d1110c435dc68d4f30.tar.gz
Qt-bd47ffa5deeb2489e47d90d1110c435dc68d4f30.tar.bz2
QNAM HTTP Code: Start accept-language header with capital letter
HTTP header names are case insensitive, but stick to what all browsers etc. use to work around buggy servers. Reviewed-by: TrustMe
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qhttpnetworkconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp
index 7d54908..1f6a51a 100644
--- a/src/network/access/qhttpnetworkconnection.cpp
+++ b/src/network/access/qhttpnetworkconnection.cpp
@@ -206,7 +206,7 @@ void QHttpNetworkConnectionPrivate::prepareRequest(HttpMessagePair &messagePair)
acceptLanguage = QString::fromAscii("%1,*").arg(systemLocale);
else
acceptLanguage = QString::fromAscii("%1,en,*").arg(systemLocale);
- request.setHeaderField("accept-language", acceptLanguage.toAscii());
+ request.setHeaderField("Accept-Language", acceptLanguage.toAscii());
}
// set the User Agent