Seems to be working.

This commit is contained in:
Diego Nehab 2004-06-17 23:19:38 +00:00
parent 07dda08c5d
commit 62799a416d
3 changed files with 4 additions and 2 deletions

View file

@ -70,6 +70,7 @@ io.write("testing request uri correctness: ")
local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
local back, c, h = http.request("http://" .. host .. forth)
if not back then fail(c) end
print(back)
back = url.parse(back)
if similar(back.query, "this+is+the+query+string") then print("ok")
else fail(back.query) end