aboutsummaryrefslogtreecommitdiff
path: root/src/http.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.lua')
-rw-r--r--src/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.lua b/src/http.lua
index 4d6e426..74c29ba 100644
--- a/src/http.lua
+++ b/src/http.lua
@@ -11,7 +11,7 @@ if not LUASOCKET_LIBNAME then error('module requires LuaSocket') end
11local socket = _G[LUASOCKET_LIBNAME] 11local socket = _G[LUASOCKET_LIBNAME]
12if not socket then error('module requires LuaSocket') end 12if not socket then error('module requires LuaSocket') end
13-- create smtp namespace inside LuaSocket namespace 13-- create smtp namespace inside LuaSocket namespace
14local http = {} 14local http = socket.http or {}
15socket.http = http 15socket.http = http
16-- make all module globals fall into smtp namespace 16-- make all module globals fall into smtp namespace
17setmetatable(http, { __index = _G }) 17setmetatable(http, { __index = _G })