Merge branch 'fix-ssl' into 'master'

Fix ssl

See merge request spaceti-app/integrations/acs/colnod-connector!19
This commit is contained in:
Ondřej Fischer 2019-11-12 15:26:43 +00:00
commit 05cde8e20f

View File

@ -126,12 +126,13 @@ 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();
}
// }
}