aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/httptest.lua1
-rw-r--r--test/testclnt.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 3a4d461..8f94861 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -69,6 +69,7 @@ end
69io.write("testing request uri correctness: ") 69io.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)
72print(back, c, h)
72if not back then fail(c) end 73if not back then fail(c) end
73back = url.parse(back) 74back = url.parse(back)
74if similar(back.query, "this+is+the+query+string") then print("ok") 75if similar(back.query, "this+is+the+query+string") then print("ok")
diff --git a/test/testclnt.lua b/test/testclnt.lua
index 58a3574..38dc19a 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -448,6 +448,7 @@ test_methods(socket.tcp(), {
448 "getfd", 448 "getfd",
449 "getpeername", 449 "getpeername",
450 "getsockname", 450 "getsockname",
451 "getstats",
451 "listen", 452 "listen",
452 "receive", 453 "receive",
453 "send", 454 "send",