Add a missing ConnectionTypeHttp2Direct in several if statements
Found while preparing SPDY retirement. Change-Id: I30f923fdeb0f6f0b5e808a3e7b7d81ddb9c4ef12 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
be21ff11b7
commit
0fd6595d5e
@ -1232,7 +1232,8 @@ void QHttpNetworkConnectionPrivate::_q_hostLookupFinished(const QHostInfo &info)
|
||||
emitReplyError(channels[0].socket, channels[0].reply, QNetworkReply::HostNotFoundError);
|
||||
networkLayerState = QHttpNetworkConnectionPrivate::Unknown;
|
||||
} else if (connectionType == QHttpNetworkConnection::ConnectionTypeSPDY
|
||||
|| connectionType == QHttpNetworkConnection::ConnectionTypeHTTP2) {
|
||||
|| connectionType == QHttpNetworkConnection::ConnectionTypeHTTP2
|
||||
|| connectionType == QHttpNetworkConnection::ConnectionTypeHTTP2Direct) {
|
||||
for (const HttpMessagePair &spdyPair : qAsConst(channels[0].spdyRequestsToSend)) {
|
||||
// emit error for all replies
|
||||
QHttpNetworkReply *currentReply = spdyPair.second;
|
||||
|
@ -1096,6 +1096,7 @@ void QHttpNetworkConnectionChannel::_q_error(QAbstractSocket::SocketError socket
|
||||
|| !connection->d_func()->lowPriorityQueue.isEmpty());
|
||||
|
||||
if (connection->connectionType() == QHttpNetworkConnection::ConnectionTypeHTTP2
|
||||
|| connection->connectionType() == QHttpNetworkConnection::ConnectionTypeHTTP2Direct
|
||||
#ifndef QT_NO_SSL
|
||||
|| connection->connectionType() == QHttpNetworkConnection::ConnectionTypeSPDY
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user