Fix redirects introduced by order download fix

This commit is contained in:
Robert Griebl
2026-02-28 18:26:05 +01:00
parent 1347ff1d6a
commit 9b56a63fa6
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -419,12 +419,14 @@ Core::Core(const QString &datadir, const QString &updateUrl, quint64 physicalMem
emit authenticationChanged(m_authenticated);
}
job->resetForReuse();
job->setFollowRedirects(followRedirect);
QMetaObject::invokeMethod(this, [=, this]() {
retrieveAuthenticated(job);
}, Qt::QueuedConnection);
} else if (normalRedirect && followRedirect) {
job->resetForReuse(true /* applyRedirect*/);
job->setFollowRedirects(true);
QMetaObject::invokeMethod(this, [=, this]() {
retrieveAuthenticated(job);
+1
View File
@@ -386,6 +386,7 @@ QCoro::Task<QByteArray> TextImport::download(const QUrl &url, const QString &fil
}
TransferJob *job = TransferJob::get(url.toString(QUrl::RemoveQuery), QUrlQuery(url));
job->setFollowRedirects(true);
core()->retrieveAuthenticated(job);
AwaitableTransferJob atj(job);