Merge pull request #711 from Soullivaneuh/db-updater-binary
Fix UTF-8 encode on security db file download
This commit is contained in:
@@ -73,7 +73,7 @@ class DbUpdater
|
||||
|
||||
res = Browser.get(file_url, request_params)
|
||||
fail "Error while downloading #{file_url}" unless res.code == 200
|
||||
File.write(file_path, res.body)
|
||||
File.open(file_path, 'wb') { |f| f.write(res.body) }
|
||||
|
||||
local_file_checksum(filename)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user