From 4f7e0fc632f36fc676303423af5d62adfb8d088f Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 13 Aug 2013 16:48:09 +0200 Subject: HTTP socket engine: support newer HTTP proxies After sending authentication, we need to revert all states to be able to read the HTTP header again. Before, we would not try to read an HTTP header after sending authentication. Change-Id: Id4b95eda9881a37bcfbae0570756bb3e4918a568 Reviewed-by: Richard J. Moore Reviewed-by: Shane Kearns --- src/network/socket/qhttpsocketengine_p.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/network/socket/qhttpsocketengine_p.h') diff --git a/src/network/socket/qhttpsocketengine_p.h b/src/network/socket/qhttpsocketengine_p.h index bac6d9edf7..7567772517 100644 --- a/src/network/socket/qhttpsocketengine_p.h +++ b/src/network/socket/qhttpsocketengine_p.h @@ -75,7 +75,8 @@ public: ConnectSent, Connected, SendAuthentication, - ReadResponseContent + ReadResponseContent, + ReadResponseHeader }; QHttpSocketEngine(QObject *parent = 0); ~QHttpSocketEngine(); @@ -156,6 +157,8 @@ private: void emitWriteNotification(); void emitConnectionNotification(); + bool readHttpHeader(); + Q_DECLARE_PRIVATE(QHttpSocketEngine) Q_DISABLE_COPY(QHttpSocketEngine) -- cgit v1.2.3