summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-11-29 13:03:20 +0100
committerPetr Mrázek <peterix@gmail.com>2014-11-29 13:03:20 +0100
commit5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb (patch)
tree122aa196d479ffae94dd4d876002f2deebfd2d08
parent7778c8412105a19b07ebfe30c32d2f8dcaf06196 (diff)
downloadMultiMC-5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb.tar
MultiMC-5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb.tar.gz
MultiMC-5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb.tar.lz
MultiMC-5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb.tar.xz
MultiMC-5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb.zip
GH-640 Make legacy forge downloads follow redirects
-rw-r--r--gui/pages/LegacyJarModPage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/pages/LegacyJarModPage.cpp b/gui/pages/LegacyJarModPage.cpp
index 63a0fe46..0d480d80 100644
--- a/gui/pages/LegacyJarModPage.cpp
+++ b/gui/pages/LegacyJarModPage.cpp
@@ -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)