# HG changeset patch # User Waqas Hussain # Date 1238360156 -18000 # Node ID c63f9bc45a85afdacf76913ebe9049dc3e460f6d # Parent 0e45234360cd8f7a09c4f79226310160dc4d04d6 Fixed: net/http.lua: HTTP request callback wasn't being called on some errors diff -r 0e45234360cd -r c63f9bc45a85 net/http.lua --- a/net/http.lua Sun Mar 29 13:50:59 2009 +0100 +++ b/net/http.lua Mon Mar 30 01:55:56 2009 +0500 @@ -115,6 +115,7 @@ local req = url.parse(u); if not (req and req.host) then + callback(nil, 0, req); return nil, "invalid-url"; end