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 <[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 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: [email protected]
For additional commands, e-mail: [email protected]