mirror of
https://github.com/rgriebl/brickstore.git
synced 2026-05-18 05:58:25 -05:00
Fix redirects introduced by order download fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user