added wrong scheme test
This commit is contained in:
parent
36b07d5fd0
commit
4f27c376e9
1 changed files with 12 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue