net/httpserver.lua

changeset 958
172fb9a73017
parent 697
8ddc85fa7602
child 1038
90f663769b75
child 1052
a3429542631d
--- a/net/httpserver.lua	Sun Apr 05 19:42:01 2009 +0100
+++ b/net/httpserver.lua	Sun Apr 05 19:42:56 2009 +0100
@@ -96,7 +96,7 @@
 		
 		local response = callback(request.method, request.body and t_concat(request.body), request);
 		if response then
-			if response == true then
+			if response == true and not request.destroyed then
 				-- Keep connection open, we will reply later
 				log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy));
 			else

mercurial