You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/04/23 12:39:45 UTC
(tomcat) branch 9.0.x updated: Add missing strings
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new b60ab855f7 Add missing strings
b60ab855f7 is described below
commit b60ab855f7d05074339fc3aac1af03d327a72b22
Author: remm <re...@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 ebbacb7f29..7c5ca6176e 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -211,8 +211,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;
}
@@ -233,8 +232,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));
}
}
}
@@ -612,8 +610,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org