1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-01 10:07:56 +00:00

Merge pull request #302 from Wojbie/Wget-binary-mode

Switch wget to use binary mode.
This commit is contained in:
Daniel Ratcliffe
2017-06-03 21:32:45 +01:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ local function get( sUrl )
return nil
end
local response = http.get( sUrl )
local response = http.get( sUrl , nil , true )
if not response then
print( "Failed." )
return nil
@@ -53,7 +53,7 @@ end
-- Do the get
local res = get( sUrl )
if res then
local file = fs.open( sPath, "w" )
local file = fs.open( sPath, "wb" )
file.write( res )
file.close()