Fix network build without feature.networkproxy
Change-Id: I832db8e9e13b93d7613bdf890fa6c16be78b3b28 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
fe4a7de238
commit
12e0c7cbe0
@ -600,6 +600,7 @@ void QHttpNetworkConnectionPrivate::createAuthorization(QAbstractSocket *socket,
|
||||
}
|
||||
}
|
||||
|
||||
#if QT_CONFIG(networkproxy)
|
||||
// Send "Proxy-Authorization" header, but not if it's NTLM and the socket is already authenticated.
|
||||
if (channels[i].proxyAuthMethod != QAuthenticatorPrivate::None) {
|
||||
if (!(channels[i].proxyAuthMethod == QAuthenticatorPrivate::Ntlm && channels[i].lastStatus != 407)) {
|
||||
@ -611,6 +612,7 @@ void QHttpNetworkConnectionPrivate::createAuthorization(QAbstractSocket *socket,
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // QT_CONFIG(networkproxy)
|
||||
}
|
||||
|
||||
QHttpNetworkReply* QHttpNetworkConnectionPrivate::queueRequest(const QHttpNetworkRequest &request)
|
||||
|
Loading…
Reference in New Issue
Block a user