Commit edc866fe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix QNetworkAccessManager usage

parent 835502f1
......@@ -87,6 +87,9 @@ void GravatarResolvUrlJob::startNetworkManager(const QUrl &url)
{
if (!d->mNetworkAccessManager) {
d->mNetworkAccessManager = new QNetworkAccessManager(this);
d->mNetworkAccessManager->setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy);
d->mNetworkAccessManager->setStrictTransportSecurityEnabled(true);
d->mNetworkAccessManager->enableStrictTransportSecurityStore(true);
connect(d->mNetworkAccessManager, &QNetworkAccessManager::finished, this, &GravatarResolvUrlJob::slotFinishLoadPixmap);
}
d->mNetworkAccessManager->get(QNetworkRequest(url));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment