diff options
Diffstat (limited to 'src/url.lua')
-rw-r--r-- | src/url.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.lua b/src/url.lua index ab3a922..de0474b 100644 --- a/src/url.lua +++ b/src/url.lua | |||
@@ -12,7 +12,7 @@ if not LUASOCKET_LIBNAME then error('module requires LuaSocket') end | |||
12 | local socket = _G[LUASOCKET_LIBNAME] | 12 | local socket = _G[LUASOCKET_LIBNAME] |
13 | if not socket then error('module requires LuaSocket') end | 13 | if not socket then error('module requires LuaSocket') end |
14 | -- create smtp namespace inside LuaSocket namespace | 14 | -- create smtp namespace inside LuaSocket namespace |
15 | local url = {} | 15 | local url = socket.url or {} |
16 | socket.url = url | 16 | socket.url = url |
17 | -- make all module globals fall into smtp namespace | 17 | -- make all module globals fall into smtp namespace |
18 | setmetatable(url, { __index = _G }) | 18 | setmetatable(url, { __index = _G }) |