Update wget.lua to download in binary mode

This commit is contained in:
Alessandro Proto 2023-01-27 23:07:48 +01:00
parent 41216610d4
commit 162ebc3dc2

View file

@ -26,7 +26,7 @@ if not response then
error(err, 0)
end
local file <close> = fs.open(outputPath, "w")
local file <close> = fs.open(outputPath, "wb")
file:write(response:readAll())
file:close()
response:close()