diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp index 4599ecaa2..aa3b49fde 100644 --- a/src/libsync/abstractnetworkjob.cpp +++ b/src/libsync/abstractnetworkjob.cpp @@ -43,7 +43,7 @@ namespace OCC { AbstractNetworkJob::AbstractNetworkJob(AccountPtr account, const QString &path, QObject *parent) : QObject(parent) , _timedout(false) - , _followRedirects(false) + , _followRedirects(true) , _account(account) , _ignoreCredentialFailure(false) , _reply(0) diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 09472be87..ab5598468 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -359,7 +359,6 @@ CheckServerJob::CheckServerJob(AccountPtr account, QObject *parent) : AbstractNetworkJob(account, QLatin1String(statusphpC) , parent) , _subdirFallback(false) { - _followRedirects = true; setIgnoreCredentialFailure(true); } diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 2a126ee60..6473c4001 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -99,7 +99,6 @@ void GETFileJob::start() { } else { // Use direct URL setReply(davRequest("GET", _directDownloadUrl, req)); - _followRedirects = true; // (follow redirections for the direct download) } setupConnections(reply());