diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 710208eea6..94ba15a09c 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -29,6 +29,8 @@ namespace OCC { +static constexpr auto CustomDecompressedSafetyCheckThreshold = 20 * 1024 * 1024; + Q_LOGGING_CATEGORY(lcGetJob, "nextcloud.sync.networkjob.get", QtInfoMsg) Q_LOGGING_CATEGORY(lcPropagateDownload, "nextcloud.sync.propagator.download", QtInfoMsg) @@ -114,6 +116,7 @@ void GETFileJob::start() } req.setPriority(QNetworkRequest::LowPriority); // Long downloads must not block non-propagation jobs. + req.setDecompressedSafetyCheckThreshold(CustomDecompressedSafetyCheckThreshold); if (_directDownloadUrl.isEmpty()) { sendRequest("GET", makeDavUrl(path()), req);