diff options
author | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-08-04 09:34:50 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-08-04 10:21:24 +0000 |
commit | 2d1f1371733c85b23eb91d27999c5a0ec9373a54 (patch) | |
tree | 0789ab06c9d0ec125b7e989109a8a163982970a6 /src/network/access/qhttpprotocolhandler.cpp | |
parent | 4a40c717f3cf1ae181df49c91261a12d5e33e5a4 (diff) |
Revert "Implement protocol upgrade for HTTP/2 enabled requests"
This reverts commit 12d71f4ea20415ff2274e1e90f9e4d5a8b935d7f.
This change is breaking a build + incomplete as my test revealed.
Will have to re-try later.
Change-Id: I7ea089093a832aa5822caaaac56e62f5fda4df17
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/network/access/qhttpprotocolhandler.cpp')
-rw-r--r-- | src/network/access/qhttpprotocolhandler.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/network/access/qhttpprotocolhandler.cpp b/src/network/access/qhttpprotocolhandler.cpp index ab136af083..b486b75449 100644 --- a/src/network/access/qhttpprotocolhandler.cpp +++ b/src/network/access/qhttpprotocolhandler.cpp @@ -129,15 +129,6 @@ void QHttpProtocolHandler::_q_receiveReply() } else { replyPrivate->autoDecompress = false; } - if (m_connection->connectionType() == QHttpNetworkConnection::ConnectionTypeHTTP2) { - if (replyPrivate->statusCode == 101) { - QMetaObject::invokeMethod(m_channel, "_q_protocolSwitch", Qt::QueuedConnection); - return; - } - - // HTTP/2 is not supported? TODO - but can it be something else? - m_channel->requeueSpdyRequests(); - } if (replyPrivate->statusCode == 100) { replyPrivate->clearHttpLayerInformation(); replyPrivate->state = QHttpNetworkReplyPrivate::ReadingStatusState; |