mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
added wrong scheme test
This commit is contained in:
parent
36b07d5fd0
commit
4f27c376e9
@ -278,6 +278,18 @@ ignore = {
|
|||||||
}
|
}
|
||||||
check_request(request, expect, 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
|
local body
|
||||||
write("testing simple get function: ")
|
write("testing simple get function: ")
|
||||||
body = HTTP.get("http://" .. host .. prefix .. "/index.html")
|
body = HTTP.get("http://" .. host .. prefix .. "/index.html")
|
||||||
|
Loading…
Reference in New Issue
Block a user