Changeset

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
parents 922:0e45234360cd
children 924:db022135aed4
files net/http.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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