added wrong scheme test

This commit is contained in:
Diego Nehab 2001-09-26 20:29:18 +00:00
parent 36b07d5fd0
commit 4f27c376e9

View File

@ -278,6 +278,18 @@ ignore = {
}
check_request(request, expect, ignore)
write("testing wrong scheme: ")
request = {
url = "wrong://" .. host .. cgiprefix .. "/cat",
method = "GET"
}
expect = {
error = "unknown scheme 'wrong'"
}
ignore = {
}
check_request(request, expect, ignore)
local body
write("testing simple get function: ")
body = HTTP.get("http://" .. host .. prefix .. "/index.html")