From 5af1f0cf502b2045a1fa3ef98883d7b0ea3597bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 29 Nov 2014 13:03:20 +0100 Subject: [PATCH] GH-640 Make legacy forge downloads follow redirects --- gui/pages/LegacyJarModPage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)