net.httpserver: Don't log the response body (can be binary data...)

Thu, 23 Apr 2009 21:04:07 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Apr 2009 21:04:07 +0100
changeset 1052
a3429542631d
parent 1051
0327c569eb1a
child 1053
c04b40a0740b

net.httpserver: Don't log the response body (can be binary data...)

net/httpserver.lua file | annotate | diff | comparison | revisions
--- a/net/httpserver.lua	Thu Apr 23 21:03:24 2009 +0100
+++ b/net/httpserver.lua	Thu Apr 23 21:04:07 2009 +0100
@@ -30,7 +30,7 @@
 	-- Write status line
 	local resp;
 	if response.body then
-		log("debug", "Sending response to %s: %s", request.id, response.body);
+		log("debug", "Sending response to %s", request.id);
 		resp = { "HTTP/1.0 ", response.status or "200 OK", "\r\n"};
 		local h = response.headers;
 		if h then

mercurial