aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index 1d22d3e5..29da41ea 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -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