Fixed: net/http.lua: HTTP request callback wasn't being called on some errors

Mon, 30 Mar 2009 01:55:56 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 30 Mar 2009 01:55:56 +0500
changeset 923
c63f9bc45a85
parent 922
0e45234360cd
child 924
db022135aed4

Fixed: net/http.lua: HTTP request callback wasn't being called on some errors

net/http.lua file | annotate | diff | comparison | revisions
--- 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
 	

mercurial