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.
This commit is contained in:
Jay Pfaffman 2024-03-25 17:39:09 -05:00 committed by GitHub
parent 2a1b675af7
commit 63f6c1e81a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)