NOISSUE catch and log SSL errors for Download(s)
This commit is contained in:
parent
e6d734d9ac
commit
e44a0cb944
2 changed files with 13 additions and 0 deletions
|
@ -135,6 +135,18 @@ void Download::downloadError(QNetworkReply::NetworkError error)
|
|||
}
|
||||
}
|
||||
|
||||
void Download::sslErrors(const QList<QSslError> & errors)
|
||||
{
|
||||
int i = 1;
|
||||
for (auto error : errors)
|
||||
{
|
||||
qCritical() << "Download" << m_url.toString() << "SSL Error #" << i << " : " << error.errorString();
|
||||
auto cert = error.certificate();
|
||||
qCritical() << "Certificate in question:\n" << cert.toText();
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
bool Download::handleRedirect()
|
||||
{
|
||||
QVariant redirect = m_reply->header(QNetworkRequest::LocationHeader);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue