Couple bug fixes.
This commit is contained in:
parent
8bf9fb51dd
commit
be2e467929
11 changed files with 77 additions and 74 deletions
|
@ -119,9 +119,8 @@ check_request(request, expect, ignore)
|
|||
|
||||
------------------------------------------------------------------------
|
||||
io.write("testing invalid url: ")
|
||||
local c, e = socket.connect("", 80)
|
||||
local r, re = http.request{url = host .. prefix}
|
||||
assert(r == nil and e == re)
|
||||
local r, e = http.request{url = host .. prefix}
|
||||
assert(r == nil and e == "invalid host ''")
|
||||
r, re = http.request(host .. prefix)
|
||||
assert(r == nil and e == re, tostring(r) ..", " .. tostring(re) ..
|
||||
" vs " .. tostring(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue