From: yoavs Date: Sun, 25 Mar 2007 23:08:01 +0000 (+0000) Subject: Bugzilla 41675: add a couple of DEBUG-level logging statements to Http11Processor... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9a8d76c08bcb8f8973df843061a5962a9100b6df;p=tomcat7.0 Bugzilla 41675: add a couple of DEBUG-level logging statements to Http11Processor.java when sending error responses. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@522379 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11Processor.java b/java/org/apache/coyote/http11/Http11Processor.java index d5dfbb17f..b886c48f3 100644 --- a/java/org/apache/coyote/http11/Http11Processor.java +++ b/java/org/apache/coyote/http11/Http11Processor.java @@ -1174,6 +1174,10 @@ public class Http11Processor implements ActionHook { http11 = false; error = true; // Send 505; Unsupported HTTP version + if (log.isDebugEnabled()) { + log.debug(sm.getString("http11processor.request.prepare")+ + " Unsupported HTTP version \""+protocolMB+"\""); + } response.setStatus(505); } @@ -1282,6 +1286,10 @@ public class Http11Processor implements ActionHook { // Unsupported transfer encoding error = true; // 501 - Unimplemented + if (log.isDebugEnabled()) { + log.debug(sm.getString("http11processor.request.prepare")+ + " Unsupported transfer encoding \""+encodingName+"\""); + } response.setStatus(501); } } @@ -1300,6 +1308,10 @@ public class Http11Processor implements ActionHook { if (http11 && (valueMB == null)) { error = true; // 400 - Bad request + if (log.isDebugEnabled()) { + log.debug(sm.getString("http11processor.request.prepare")+ + " host header missing"); + } response.setStatus(400); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 0815b8aca..db5c8ff82 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -63,6 +63,10 @@ Requests with multiple content-length headers are now rejected. (markt) + + 41675 Add a couple of DEBUG-level logging statements to Http11Processors + when sending error responses. Patch by Ralf Hauser. (yoavs) +