diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 01:55:56 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 01:55:56 +0500 |
commit | 9357b3fc3e70223a8a621e0d6f31b25693395c92 (patch) | |
tree | a8fddc11ea58764cdb1ad2ccdccd8694b9cf15ad /net | |
parent | cb2b5ec86f2949720c642a729cdc292a255811c0 (diff) | |
download | prosody-9357b3fc3e70223a8a621e0d6f31b25693395c92.tar.gz prosody-9357b3fc3e70223a8a621e0d6f31b25693395c92.zip |
Fixed: net/http.lua: HTTP request callback wasn't being called on some errors
Diffstat (limited to 'net')
-rw-r--r-- | net/http.lua | 1 |
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 |