mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Fixed: net/http.lua: HTTP request callback wasn't being called on some errors
This commit is contained in:
parent
cb2b5ec86f
commit
9357b3fc3e
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ function request(u, ex, callback)
|
|||
local req = url.parse(u);
|
||||
|
||||
if not (req and req.host) then
|
||||
callback(nil, 0, req);
|
||||
return nil, "invalid-url";
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue