From 9357b3fc3e70223a8a621e0d6f31b25693395c92 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 30 Mar 2009 01:55:56 +0500 Subject: Fixed: net/http.lua: HTTP request callback wasn't being called on some errors --- net/http.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net/http.lua') 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 -- cgit v1.2.3