1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-12 18:30:29 +00:00

Switch wget to use binary mode.

Allows wget to download all types of files not only text ones.
This commit is contained in:
Wojbie 2017-06-03 13:19:57 +02:00
parent 54d202cf6b
commit 0cc65adff9

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()