diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /Network/FileDownload.cpp | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'Network/FileDownload.cpp')
| -rw-r--r-- | Network/FileDownload.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Network/FileDownload.cpp b/Network/FileDownload.cpp index 3ab2a7c6..91b9048f 100644 --- a/Network/FileDownload.cpp +++ b/Network/FileDownload.cpp @@ -131,6 +131,11 @@ void FileDownload::replyComplete() void FileDownload::downloadComplete(QNetworkReply *data) { + if (data != reply_) + { + return; + } + // make a temp file in the same place as the file we're downloading. Needs to be on the same // filesystem as where we eventually want to 'mv' it. @@ -171,7 +176,8 @@ void FileDownload::download(QUrl qurl) LOG_INFO(QString{"FileDownload [%1]: Starting download of %2 to %3"}.arg(user_agent_).arg(source_url_).arg(destination_filename_)); - request_.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); + request_.setAttribute(QNetworkRequest::RedirectPolicyAttribute + , QNetworkRequest::NoLessSafeRedirectPolicy); request_.setRawHeader("Accept", "*/*"); request_.setRawHeader ("User-Agent", user_agent_.toLocal8Bit()); // Must have a UA for some sites, like country-files |
