Merge pull request #1579 from nextcloud/fix-remote-wipe-proxy

Fix remote wipe when a proxy is configured.
This commit is contained in:
Camila Ayres 2019-11-04 20:16:53 +01:00 committed by GitHub
commit f3bc2f5e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,8 @@ void RemoteWipe::startCheckJobWithAppPassword(QString pwd){
QUrlQuery arguments(QString("token=%1").arg(_appPassword));
requestBody->setData(arguments.query(QUrl::FullyEncoded).toLatin1());
_networkReplyCheck = _networkManager.post(request, requestBody);
QObject::connect(&_networkManager, SIGNAL(sslErrors(QNetworkReply *, QList<QSslError>)),
_account.data(), SLOT(slotHandleSslErrors(QNetworkReply *, QList<QSslError>)));
QObject::connect(_networkReplyCheck, &QNetworkReply::finished, this,
&RemoteWipe::checkJobSlot);
}