aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/httptest.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 8f94861..5186bd5 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -19,7 +19,7 @@ http.TIMEOUT = 10
19 19
20local t = socket.gettime() 20local t = socket.gettime()
21 21
22host = host or "diego.student.princeton.edu" 22host = host or "diego.student.dyn.cs.princeton.edu"
23proxy = proxy or "http://localhost:3128" 23proxy = proxy or "http://localhost:3128"
24prefix = prefix or "/luasocket-test" 24prefix = prefix or "/luasocket-test"
25cgiprefix = cgiprefix or "/luasocket-test-cgi" 25cgiprefix = cgiprefix or "/luasocket-test-cgi"
@@ -69,7 +69,6 @@ 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)
73if not back then fail(c) end 72if not back then fail(c) end
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")