[Qt] Enable HTTP Pipelining by default
authorbenjamin.poulain@nokia.com <benjamin.poulain@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jul 2011 15:50:25 +0000 (15:50 +0000)
committerbenjamin.poulain@nokia.com <benjamin.poulain@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jul 2011 15:50:25 +0000 (15:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=64169

Reviewed by Andreas Kling.

QNetworkAccessManager disables HTTP pipelining by default. We enable it by
setting an attribute on the request.

* platform/network/qt/ResourceRequestQt.cpp:
(WebCore::ResourceRequest::toNetworkRequest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90634 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/qt/ResourceRequestQt.cpp

index d7db1c7fccdc2e1d7cfd36c7e03e2387e09d8dbe..df7c5e42dd2c9e2b34ccd415dd325c7de63b3dad 100644 (file)
@@ -1,3 +1,16 @@
+2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
+
+        [Qt] Enable HTTP Pipelining by default
+        https://bugs.webkit.org/show_bug.cgi?id=64169
+
+        Reviewed by Andreas Kling.
+
+        QNetworkAccessManager disables HTTP pipelining by default. We enable it by
+        setting an attribute on the request.
+
+        * platform/network/qt/ResourceRequestQt.cpp:
+        (WebCore::ResourceRequest::toNetworkRequest):
+
 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
 
         Web Inspector: CSS inspector gets confused about specificity of !important properties
index 54c08d0570ab5895072df1eb0d68c03512d08279..de60bd14d0bb70db46865ff91060fd229893f33f 100644 (file)
@@ -49,6 +49,7 @@ QNetworkRequest ResourceRequest::toNetworkRequest(QObject* originatingFrame) con
     QNetworkRequest request;
     request.setUrl(url());
     request.setOriginatingObject(originatingFrame);
+    request.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);
 
     const HTTPHeaderMap &headers = httpHeaderFields();
     for (HTTPHeaderMap::const_iterator it = headers.begin(), end = headers.end();