qhttpnetworkreply: remove unused findChallenge method
This method is part of private API, so it's safe. Change-Id: Idc7464a825841db2fa9dddd47d6dbda82668601d Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
99cec50f56
commit
90e1e1ee86
@ -378,22 +378,6 @@ void QHttpNetworkReplyPrivate::removeAutoDecompressHeader()
|
||||
}
|
||||
}
|
||||
|
||||
bool QHttpNetworkReplyPrivate::findChallenge(bool forProxy, QByteArray &challenge) const
|
||||
{
|
||||
challenge.clear();
|
||||
// find out the type of authentication protocol requested.
|
||||
const auto header = QByteArrayView(forProxy ? "proxy-authenticate" : "www-authenticate");
|
||||
// pick the best protocol (has to match parsing in QAuthenticatorPrivate)
|
||||
QList<QByteArray> challenges = headerFieldValues(header);
|
||||
for (int i = 0; i<challenges.size(); i++) {
|
||||
QByteArray line = challenges.at(i);
|
||||
// todo use qstrincmp
|
||||
if (!line.toLower().startsWith("negotiate"))
|
||||
challenge = line;
|
||||
}
|
||||
return !challenge.isEmpty();
|
||||
}
|
||||
|
||||
qint64 QHttpNetworkReplyPrivate::readStatus(QAbstractSocket *socket)
|
||||
{
|
||||
if (fragment.isEmpty()) {
|
||||
|
@ -179,7 +179,6 @@ public:
|
||||
qint64 readBody(QAbstractSocket *socket, QByteDataBuffer *out);
|
||||
qint64 readBodyVeryFast(QAbstractSocket *socket, char *b);
|
||||
qint64 readBodyFast(QAbstractSocket *socket, QByteDataBuffer *rb);
|
||||
bool findChallenge(bool forProxy, QByteArray &challenge) const;
|
||||
void clear();
|
||||
void clearHttpLayerInformation();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user