Fix UTF-8 encode on security db file download

This commit is contained in:
Sullivan SENECHAL
2014-10-20 14:00:58 +02:00
parent 74b9776801
commit 020633503b

View File

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