This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 452cb0a7c7 Add missing strings
452cb0a7c7 is described below

commit 452cb0a7c788f25b039376d3c6c7330ba6e4e484
Author: remm <r...@apache.org>
AuthorDate: Tue Apr 23 14:28:54 2024 +0200

    Add missing strings
---
 java/org/apache/coyote/http11/Http11Processor.java    | 9 +++------
 java/org/apache/coyote/http11/LocalStrings.properties | 3 +++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/java/org/apache/coyote/http11/Http11Processor.java 
b/java/org/apache/coyote/http11/Http11Processor.java
index 87aa0da734..0692b8da4e 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -212,8 +212,7 @@ public class Http11Processor extends AbstractProcessor {
             response.setStatus(400);
             setErrorState(ErrorState.CLOSE_CLEAN, null);
             if (log.isDebugEnabled()) {
-                log.debug(sm.getString("http11processor.request.prepare") +
-                        " Transfer encoding lists chunked before [" + 
encodingName + "]");
+                
log.debug(sm.getString("http11processor.request.alreadyChunked", encodingName));
             }
             return;
         }
@@ -234,8 +233,7 @@ public class Http11Processor extends AbstractProcessor {
             response.setStatus(501);
             setErrorState(ErrorState.CLOSE_CLEAN, null);
             if (log.isDebugEnabled()) {
-                log.debug(sm.getString("http11processor.request.prepare") + " 
Unsupported transfer encoding [" +
-                        encodingName + "]");
+                
log.debug(sm.getString("http11processor.request.unsupportedEncoding", 
encodingName));
             }
         }
     }
@@ -613,8 +611,7 @@ public class Http11Processor extends AbstractProcessor {
             response.setStatus(505);
             setErrorState(ErrorState.CLOSE_CLEAN, null);
             if (log.isDebugEnabled()) {
-                log.debug(sm.getString("http11processor.request.prepare") + " 
Unsupported HTTP version \"" +
-                        protocolMB + "\"");
+                
log.debug(sm.getString("http11processor.request.unsupportedVersion", 
protocolMB));
             }
         }
     }
diff --git a/java/org/apache/coyote/http11/LocalStrings.properties 
b/java/org/apache/coyote/http11/LocalStrings.properties
index 9e4d2ec86a..e42b425350 100644
--- a/java/org/apache/coyote/http11/LocalStrings.properties
+++ b/java/org/apache/coyote/http11/LocalStrings.properties
@@ -22,6 +22,7 @@ abstractHttp11Protocol.upgradeJmxRegistrationFail=Failed to 
register upgrade pro
 http11processor.fallToDebug=\n\
 \ Note: further occurrences of HTTP request parsing errors will be logged at 
DEBUG level.
 http11processor.header.parse=Error parsing HTTP request header
+http11processor.request.alreadyChunked=Error preparing request, transfer 
encoding lists chunked before [{0}]
 http11processor.request.finish=Error finishing request
 http11processor.request.inconsistentHosts=The host specified in the request 
line is not consistent with the host header
 http11processor.request.invalidScheme=The HTTP request contained an absolute 
URI with an invalid scheme
@@ -34,6 +35,8 @@ http11processor.request.noHostHeader=The HTTP/1.1 request did 
not provide a host
 http11processor.request.nonNumericContentLength=The request contained a 
content-length header with a non-numeric value
 http11processor.request.prepare=Error preparing request
 http11processor.request.process=Error processing request
+http11processor.request.unsupportedEncoding=Error preparing request, 
unsupported transfer encoding [{0}]
+http11processor.request.unsupportedVersion=Error preparing request, 
unsupported HTTP version [{0}]
 http11processor.response.finish=Error finishing response
 http11processor.response.invalidHeader=The HTTP response header [{0}] with 
value [{1}] has been removed from the response because it is invalid
 http11processor.sendfile.error=Error sending data using sendfile. May be 
caused by invalid request attributes for start/end points


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to