diff options
-rw-r--r-- | test/httptest.lua | 3 |
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 | ||
20 | local t = socket.gettime() | 20 | local t = socket.gettime() |
21 | 21 | ||
22 | host = host or "diego.student.princeton.edu" | 22 | host = host or "diego.student.dyn.cs.princeton.edu" |
23 | proxy = proxy or "http://localhost:3128" | 23 | proxy = proxy or "http://localhost:3128" |
24 | prefix = prefix or "/luasocket-test" | 24 | prefix = prefix or "/luasocket-test" |
25 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 25 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
@@ -69,7 +69,6 @@ end | |||
69 | io.write("testing request uri correctness: ") | 69 | 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 | print(back, c, h) | ||
73 | if not back then fail(c) end | 72 | if not back then fail(c) end |
74 | back = url.parse(back) | 73 | back = url.parse(back) |
75 | if similar(back.query, "this+is+the+query+string") then print("ok") | 74 | if similar(back.query, "this+is+the+query+string") then print("ok") |