Diff

net/http.lua @ 923:c63f9bc45a85

Fixed: net/http.lua: HTTP request callback wasn't being called on some errors
author Waqas Hussain <waqas20@gmail.com>
date Mon, 30 Mar 2009 01:55:56 +0500
parent 903:6737d005a84a
child 1037:cb5fdce8dcec
child 1111:a1cf1d623695
line wrap: on
line diff
--- 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