diff options
author | Peter Hartmann <phartmann@blackberry.com> | 2013-08-13 16:48:09 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-22 12:37:30 +0200 |
commit | 4f7e0fc632f36fc676303423af5d62adfb8d088f (patch) | |
tree | a201c142424a4c83e506b62182b12e3a27dc7b9b /src/network/socket/qhttpsocketengine_p.h | |
parent | 676a10b3dc8fad7a3cf6b77d5e8ecf6df2e039bb (diff) |
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 <rich@kde.org>
Reviewed-by: Shane Kearns <shane.kearns.qt@gmail.com>
Diffstat (limited to 'src/network/socket/qhttpsocketengine_p.h')
-rw-r--r-- | src/network/socket/qhttpsocketengine_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
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) |