aboutsummaryrefslogtreecommitdiff
path: root/src/ltn12.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltn12.lua')
-rw-r--r--src/ltn12.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ltn12.lua b/src/ltn12.lua
index 1014de2..dede0fa 100644
--- a/src/ltn12.lua
+++ b/src/ltn12.lua
@@ -9,6 +9,7 @@
9----------------------------------------------------------------------------- 9-----------------------------------------------------------------------------
10local string = require("string") 10local string = require("string")
11local table = require("table") 11local table = require("table")
12local unpack = unpack or table.unpack
12local base = _G 13local base = _G
13local _M = {} 14local _M = {}
14if module then -- heuristic for exporting a global package table 15if module then -- heuristic for exporting a global package table
@@ -42,7 +43,7 @@ end
42-- (thanks to Wim Couwenberg) 43-- (thanks to Wim Couwenberg)
43function filter.chain(...) 44function filter.chain(...)
44 local arg = {...} 45 local arg = {...}
45 local n = select('#',...) 46 local n = base.select('#',...)
46 local top, index = 1, 1 47 local top, index = 1, 1
47 local retry = "" 48 local retry = ""
48 return function(chunk) 49 return function(chunk)