aboutsummaryrefslogtreecommitdiff
path: root/etc/get.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/get.lua')
-rw-r--r--etc/get.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/get.lua b/etc/get.lua
index cc270e8..35de7d7 100644
--- a/etc/get.lua
+++ b/etc/get.lua
@@ -106,7 +106,10 @@ function getbyftp(url, file)
106 -- only print feedback if output is not stdout 106 -- only print feedback if output is not stdout
107 -- and we don't know how big the file is 107 -- and we don't know how big the file is
108 if file then save = ltn12.sink.chain(stats(), save) end 108 if file then save = ltn12.sink.chain(stats(), save) end
109 local ret, err = socket.ftp.get {url = url, sink = save, type = "i"} 109 local gett = socket.url.parse(url)
110 gett.sink = save
111 gett.type = "i"
112 local ret, err = socket.ftp.get(gett)
110 if err then print(err) end 113 if err then print(err) end
111end 114end
112 115