Helpviewer/Network/NetworkAccessManager.py

changeset 381
64ae9e09d8bc
parent 286
652f5159f1c3
child 491
ac476c22d392
--- a/Helpviewer/Network/NetworkAccessManager.py	Sat Jul 03 21:07:06 2010 +0200
+++ b/Helpviewer/Network/NetworkAccessManager.py	Sun Jul 04 17:52:29 2010 +0200
@@ -18,7 +18,8 @@
 except ImportError:
     SSL_AVAILABLE = False
 
-from E5Network.E5NetworkProxyFactory import E5NetworkProxyFactory, proxyAuthenticationRequired
+from E5Network.E5NetworkProxyFactory import E5NetworkProxyFactory, \
+    proxyAuthenticationRequired
 
 from UI.AuthenticationDialog import AuthenticationDialog
 
@@ -127,11 +128,11 @@
         if reply is not None:
             return reply
         
+        req = QNetworkRequest(request)
+        if hasattr(QNetworkRequest, 'HttpPipeliningAllowedAttribute'):
+            req.setAttribute(QNetworkRequest.HttpPipeliningAllowedAttribute, True);
         if not self.__acceptLanguage.isEmpty():
-            req = QNetworkRequest(request)
             req.setRawHeader("Accept-Language", self.__acceptLanguage)
-        else:
-            req = request
         
         # AdBlock code
         if op == QNetworkAccessManager.GetOperation:

eric ide

mercurial