aboutsummaryrefslogtreecommitdiff
path: root/test/httptest.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-18 08:02:09 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-18 08:02:09 +0000
commitac4aac0909da26befaaeb6b415f66cf35b6980e0 (patch)
tree3d3289e6192508484dcbefa10e2d862c5cc06d64 /test/httptest.lua
parent62799a416d2b29d8058331f3d8725fb67c75d261 (diff)
downloadluasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.tar.gz
luasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.tar.bz2
luasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.zip
Implemented safe exceptions. This looks preeety good.
Diffstat (limited to 'test/httptest.lua')
-rw-r--r--test/httptest.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index d1f2b88..45d7e8d 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -70,7 +70,6 @@ io.write("testing request uri correctness: ")
70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" 70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
71local back, c, h = http.request("http://" .. host .. forth) 71local back, c, h = http.request("http://" .. host .. forth)
72if not back then fail(c) end 72if not back then fail(c) end
73print(back)
74back = url.parse(back) 73back = url.parse(back)
75if similar(back.query, "this+is+the+query+string") then print("ok") 74if similar(back.query, "this+is+the+query+string") then print("ok")
76else fail(back.query) end 75else fail(back.query) end