aboutsummaryrefslogtreecommitdiff
path: root/src/http.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:47:41 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:47:41 +0000
commit6c565dd7c06c96fd9b3394ade61f46da59590d30 (patch)
treef303c1a94627e002fa4dd73d2f2641596b8b1420 /src/http.lua
parent84f03fda7c2be57e14f937e295710b5e883fedc6 (diff)
downloadluasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.tar.gz
luasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.tar.bz2
luasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.zip
Almost there.
Diffstat (limited to 'src/http.lua')
-rw-r--r--src/http.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http.lua b/src/http.lua
index e6a0928..7dee8e6 100644
--- a/src/http.lua
+++ b/src/http.lua
@@ -6,10 +6,9 @@
6-- RCS ID: $Id$ 6-- RCS ID: $Id$
7----------------------------------------------------------------------------- 7-----------------------------------------------------------------------------
8-- make sure LuaSocket is loaded 8-- make sure LuaSocket is loaded
9if not LUASOCKET_LIBNAME then error('module requires LuaSocket') end 9require("luasocket")
10-- get LuaSocket namespace 10-- get LuaSocket namespace
11local socket = _G[LUASOCKET_LIBNAME] 11local socket = _G[LUASOCKET_LIBNAME]
12if not socket then error('module requires LuaSocket') end
13 12
14-- require other modules 13-- require other modules
15require("ltn12") 14require("ltn12")