mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 11:40:29 +00:00
Merge pull request #302 from Wojbie/Wget-binary-mode
Switch wget to use binary mode.
This commit is contained in:
commit
3828750ade
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user