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

This commit is contained in:
clach04
2020-07-20 13:53:52 -07:00
committed by GitHub
parent cc653ef5b0
commit a328f09cc4

View File

@@ -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