Fix issues #6362 - ftp corruption of binary files (#6363)

reviewable/pr6408/r1
clach04 4 years ago committed by GitHub
parent cc653ef5b0
commit a328f09cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,7 @@ function FtpApi:ftpGet(u, command)
p.password = util.urlDecode(p.password)
p.command = command
p.sink = ltn12.sink.table(t)
p.type = "i" -- binary
local r, e = ftp.get(p)
return r and table.concat(t), e
end

Loading…
Cancel
Save