Pass network session to http delegate
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Fri, 27 Apr 2012 15:43:28 +0000 (16:43 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 May 2012 10:06:37 +0000 (12:06 +0200)
This functionality was in Qt4, and apparently lost in the
QNetworkAccessHttpBackend -> QNetworkReplyHttpImpl change

Change-Id: Ia354cfd2c10808a6543173ec017d911f1696e7fb
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/access/qnetworkreplyhttpimpl.cpp

index e2d75c0..5486883 100644 (file)
@@ -756,6 +756,9 @@ void QNetworkReplyHttpImplPrivate::postRequest()
 
     // Create the HTTP thread delegate
     QHttpThreadDelegate *delegate = new QHttpThreadDelegate;
+#ifndef QT_NO_BEARERMANAGEMENT
+    delegate->networkSession = managerPrivate->networkSession;
+#endif
 
     // For the synchronous HTTP, this is the normal way the delegate gets deleted
     // For the asynchronous HTTP this is a safety measure, the delegate deletes itself when HTTP is finished