FIX: Allow redirect when downloading maxmind database (#26333) (#27040)

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.

Co-authored-by: Jay Pfaffman <jay@literatecomputing.com>
This commit is contained in:
Grant 2024-05-16 03:12:34 +01:00 committed by GitHub
parent 747ecc1f8c
commit e70fa2df6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)