From 059831534c7e884f0a607ed86b582fd00d821731 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sat, 26 Sep 2026 23:24:03 +0200 Subject: New upstream version 3.2.0~rc1+dfsg --- Network/FileDownload.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Network/FileDownload.cpp') 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 -- cgit v1.2.3