Description
QHttpNetworkConnectionPrivate::createAuthorization() in qhttpnetworkconnection.cpp sets header with lower case "a" in "authorization". Is there any way this text could be "Authorization" with a capital 'A' instead? Logging into our devices over HTTP using QtWebKit fails authorization because the device excepts "Authorization". Yes the developers should have used a case insensitive compare, but we have dozens of devices and years of deployment of these devices.
-David
void QHttpNetworkConnectionPrivate::createAuthorization(QAbstractSocket *socket, QHttpNetworkRequest &request)
{
Q_ASSERT(socket);
int i = indexOf(socket);
if (channels[i].authMehtod != QAuthenticatorPrivate::None) {
if (!(channels[i].authMehtod == QAuthenticatorPrivate::Ntlm && channels[i].lastStatus != 401)) {
QAuthenticatorPrivate *priv = QAuthenticatorPrivate::getPrivate(channels[i].authenticator);
if (priv && priv->method != QAuthenticatorPrivate::None)
}
}
if (channels[i].proxyAuthMehtod != QAuthenticatorPrivate::None) {
if (!(channels[i].proxyAuthMehtod == QAuthenticatorPrivate::Ntlm && channels[i].lastStatus != 407)) {
QAuthenticatorPrivate *priv = QAuthenticatorPrivate::getPrivate(channels[i].proxyAuthenticator);
if (priv && priv->method != QAuthenticatorPrivate::None)
}
}
}