ignore ssl errors

This commit is contained in:
Ondřej Fischer 2019-11-12 16:20:56 +01:00
parent 7c49c7a1ec
commit f62563a7ff

View File

@ -126,10 +126,11 @@ void RequestManager::prepareAuthHeader()
void RequestManager::onSSLError(QNetworkReply *reply, const QList<QSslError> &errors)
{
//qDebug() << "Network SSL errors";
for (const auto &error : errors)
{
if (error.error() == QSslError::SelfSignedCertificate)
reply->ignoreSslErrors(errors);
reply->ignoreSslErrors(errors);
// for (const auto &error : errors)
// {
// if (error.error() == QSslError::SelfSignedCertificate)
// reply->ignoreSslErrors(errors);
//qDebug() << error.errorString();
}