diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 23:19:38 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 23:19:38 +0000 |
commit | 62799a416d2b29d8058331f3d8725fb67c75d261 (patch) | |
tree | fead4d5d3d8b0167c28d2a4a2d5cbf2b2e897691 /test | |
parent | 07dda08c5d25dca0f8e79b80998559544aa7c398 (diff) | |
download | luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.gz luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.bz2 luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.zip |
Seems to be working.
Diffstat (limited to 'test')
-rw-r--r-- | test/httptest.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 45d7e8d..d1f2b88 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -70,6 +70,7 @@ io.write("testing request uri correctness: ") | |||
70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" | 70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" |
71 | local back, c, h = http.request("http://" .. host .. forth) | 71 | local back, c, h = http.request("http://" .. host .. forth) |
72 | if not back then fail(c) end | 72 | if not back then fail(c) end |
73 | print(back) | ||
73 | back = url.parse(back) | 74 | back = url.parse(back) |
74 | if similar(back.query, "this+is+the+query+string") then print("ok") | 75 | if similar(back.query, "this+is+the+query+string") then print("ok") |
75 | else fail(back.query) end | 76 | else fail(back.query) end |