Seems to be working.
This commit is contained in:
parent
07dda08c5d
commit
62799a416d
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue