summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Kearns <ext-shane.2.kearns@nokia.com>2012-04-27 16:43:28 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-04 12:06:37 +0200
commitba2f772dffcae953de561ee7c666cdcb959ddaf8 (patch)
tree79e24c10f71e5514dc04608c01fe3f364f8da20d
parente40b13459bb382732c1f0349bd1274b9ba55078b (diff)
Pass network session to http delegate
This functionality was in Qt4, and apparently lost in the QNetworkAccessHttpBackend -> QNetworkReplyHttpImpl change Change-Id: Ia354cfd2c10808a6543173ec017d911f1696e7fb Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
-rw-r--r--src/network/access/qnetworkreplyhttpimpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp
index e2d75c06f8..54868836b6 100644
--- a/src/network/access/qnetworkreplyhttpimpl.cpp
+++ b/src/network/access/qnetworkreplyhttpimpl.cpp
@@ -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