mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
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:
parent
2a1b675af7
commit
63f6c1e81a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user