This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new cbe52ede4a Handle errors consistently
cbe52ede4a is described below
commit cbe52ede4a831259a0802ba69d63cca88b5f5810
Author: Mark Thomas <[email protected]>
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 3e844afb11..ebcc0d24f9 100644
--- a/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
+++ b/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
@@ -499,7 +499,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: [email protected]
For additional commands, e-mail: [email protected]