aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-03-30 01:55:56 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-03-30 01:55:56 +0500
commit9357b3fc3e70223a8a621e0d6f31b25693395c92 (patch)
treea8fddc11ea58764cdb1ad2ccdccd8694b9cf15ad
parentcb2b5ec86f2949720c642a729cdc292a255811c0 (diff)
downloadprosody-9357b3fc3e70223a8a621e0d6f31b25693395c92.tar.gz
prosody-9357b3fc3e70223a8a621e0d6f31b25693395c92.zip
Fixed: net/http.lua: HTTP request callback wasn't being called on some errors
-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