aboutsummaryrefslogtreecommitdiff
path: root/src/url.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/url.lua
parent84f03fda7c2be57e14f937e295710b5e883fedc6 (diff)
downloadluasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.tar.gz
luasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.tar.bz2
luasocket-6c565dd7c06c96fd9b3394ade61f46da59590d30.zip
Almost there.
Diffstat (limited to 'src/url.lua')
-rw-r--r--src/url.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/url.lua b/src/url.lua
index 0fba14d..b385d88 100644
--- a/src/url.lua
+++ b/src/url.lua
@@ -5,13 +5,11 @@
5-- Conforming to: RFC 2396, LTN7 5-- Conforming to: RFC 2396, LTN7
6-- RCS ID: $Id$ 6-- RCS ID: $Id$
7---------------------------------------------------------------------------- 7----------------------------------------------------------------------------
8
9-- make sure LuaSocket is loaded 8-- make sure LuaSocket is loaded
10if not LUASOCKET_LIBNAME then error('module requires LuaSocket') end 9require"luasocket"
11-- get LuaSocket namespace 10-- get LuaSocket namespace
12local socket = _G[LUASOCKET_LIBNAME] 11local socket = _G[LUASOCKET_LIBNAME]
13if not socket then error('module requires LuaSocket') end 12-- create url namespace inside LuaSocket namespace
14-- create smtp namespace inside LuaSocket namespace
15local url = socket.url or {} 13local url = socket.url or {}
16socket.url = url 14socket.url = url
17-- make all module globals fall into smtp namespace 15-- make all module globals fall into smtp namespace