You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/11/08 14:43:13 UTC
(tomcat) branch 8.5.x updated: Handle errors consistently
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new e32d154ebd Handle errors consistently
e32d154ebd is described below
commit e32d154ebd868d24287221b3d56a4e919b26bfea
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Nov 8 13:55:37 2023 +0000
Handle errors consistently
No functional change as trailer headers are read after the body.
---
java/org/apache/coyote/http11/filters/ChunkedInputFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java b/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
index 90489e7f45..5a08b27f8c 100644
--- a/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
+++ b/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
@@ -559,7 +559,7 @@ public class ChunkedInputFilter implements InputFilter, ApplicationBufferHandler
colon = true;
} else if (!HttpParser.isToken(chr)) {
// Non-token characters are illegal in header names
- throw new IOException(sm.getString("chunkedInputFilter.invalidTrailerHeaderName"));
+ throwIOException(sm.getString("chunkedInputFilter.invalidTrailerHeaderName"));
} else {
trailingHeaders.append(chr);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org