diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /Network/FileDownload.cpp | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
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 |
