Commit 42406ad1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix QNetworkAccessManager usage

parent 6bc15622
......@@ -33,6 +33,9 @@ GoogleTranslator::GoogleTranslator(QObject *parent)
: QObject(parent)
, mNetworkAccessManager(new QNetworkAccessManager(this))
{
mNetworkAccessManager->setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy);
mNetworkAccessManager->setStrictTransportSecurityEnabled(true);
mNetworkAccessManager->enableStrictTransportSecurityStore(true);
mDebug = !qEnvironmentVariableIsEmpty("KDEPIM_DEBUGGING");
connect(mNetworkAccessManager, &QNetworkAccessManager::finished, this, &GoogleTranslator::slotTranslateFinished);
}
......
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