Initial implementation of password-protected feeds.
This commit is contained in:
parent
e39c2e62cc
commit
5d74d92c5d
1 changed files with 4 additions and 0 deletions
|
@ -39,10 +39,14 @@ void SilentNetworkAccessManager::onAuthenticationRequired(QNetworkReply *reply,
|
||||||
|
|
||||||
qDebug("Feed '%s' requested authentication and got it.",
|
qDebug("Feed '%s' requested authentication and got it.",
|
||||||
qPrintable(reply->url().toString()));
|
qPrintable(reply->url().toString()));
|
||||||
|
|
||||||
|
reply->setProperty("authentication-given", true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Authentication is required but this feed does not contain it.
|
// Authentication is required but this feed does not contain it.
|
||||||
qDebug("Feed '%s' requested authentication but username/password is not available.",
|
qDebug("Feed '%s' requested authentication but username/password is not available.",
|
||||||
qPrintable(reply->url().toString()));
|
qPrintable(reply->url().toString()));
|
||||||
|
|
||||||
|
reply->setProperty("authentication-given", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue