mod_http_logging: Fix endless loop on 0.9.x (Thanks Mint)
authorKim Alvefur <zash@zash.se>
Sat, 16 Apr 2016 20:21:13 +0200
changeset 2167 88fec2b2bd58
parent 2166 f1ea8044f9f8
child 2169 e0b8b8a50013
mod_http_logging: Fix endless loop on 0.9.x (Thanks Mint)
mod_http_logging/mod_http_logging.lua
--- a/mod_http_logging/mod_http_logging.lua	Sat Apr 16 14:43:06 2016 +0200
+++ b/mod_http_logging/mod_http_logging.lua	Sat Apr 16 20:21:13 2016 +0200
@@ -25,7 +25,7 @@
 		local date = os.date("%d/%m/%Y:%H:%M:%S %z");
 		module:log("info", "%s - - [%s] \"%s\" %d %s", ip, date, req, response.status_code, tostring(len));
 	end
-	return server.send_response(response, body);
+	return send_response(response, body);
 end
 
 if module.wrap_object_event then