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

This commit is contained in:
clach04 authored and GitHub committed 2020-07-20 22:53:52 +02:00
1 parent cc653ef5b0
commit a328f09cc4
1 file changed
+1
+1
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