From 63f6c1e81aad503ba940c67ce04ada959c16b540 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Mon, 25 Mar 2024 17:39:09 -0500 Subject: [PATCH] FIX: Allow redirect when downloading maxmind database (#26333) Per https://dev.maxmind.com/geoip/release-notes/2024#presigned-urls-for-database-downloads MaxMind users who download databases should make sure that their HTTP client follows redirects and there are no proxy or firewall settings that would block requests to the host we are redirecting to. --- lib/discourse_ip_info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb index 2949f5858cb..d7a9352087b 100644 --- a/lib/discourse_ip_info.rb +++ b/lib/discourse_ip_info.rb @@ -42,7 +42,7 @@ class DiscourseIpInfo max_file_size: 100.megabytes, tmp_file_name: "#{name}.gz", validate_uri: false, - follow_redirect: false, + follow_redirect: true, ) filename = File.basename(gz_file.path)