Thu, 15 Jan 2009 04:10:06 +0000
net.http: Don't log content from server
net/http.lua | file | annotate | diff | comparison | revisions |
--- a/net/http.lua Thu Jan 15 04:08:06 2009 +0000 +++ b/net/http.lua Thu Jan 15 04:10:06 2009 +0000 @@ -170,7 +170,7 @@ req.write(body); end - req.callback = function (content, code, request) log("debug", "Calling callback, code %s content: %s", code or "---", content or "---"); return select(2, xpcall(function () return callback(content, code, request) end, handleerr)); end + req.callback = function (content, code, request) log("debug", "Calling callback, status %s", code or "---"); return select(2, xpcall(function () return callback(content, code, request) end, handleerr)); end req.reader = request_reader; req.state = "status";