GH-640 Make legacy forge downloads follow redirects

This commit is contained in:
Petr Mrázek 2014-11-29 13:03:20 +01:00
parent 7778c84121
commit 5af1f0cf50

View File

@ -113,7 +113,9 @@ void LegacyJarModPage::on_addForgeBtn_clicked()
if (entry->stale)
{
NetJob *fjob = new NetJob("Forge download");
fjob->addNetAction(CacheDownload::make(forge->universal_url, entry));
auto cacheDl = CacheDownload::make(forge->universal_url, entry);
cacheDl->m_followRedirects = true;
fjob->addNetAction(cacheDl);
ProgressDialog dlg(this);
dlg.exec(fjob);
if (dlg.result() == QDialog::Accepted)