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 cac14df9db Fix back-port
cac14df9db is described below
commit cac14df9db13208e4895b096a2d6197110556237
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 8 22:54:12 2023 +0000
Fix back-port
---
java/org/apache/coyote/http11/filters/ChunkedInputFilter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
b/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
index e4e0c68fe8..2349af04b9 100644
--- a/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
+++ b/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
@@ -169,7 +169,7 @@ public class ChunkedInputFilter implements InputFilter,
ApplicationBufferHandler
if (remaining <= 0) {
if (!parseChunkHeader()) {
-
throwIOException(sm.getString("chunkedInputFilter.invalidHeader"));
+
throwBadRequestException(sm.getString("chunkedInputFilter.invalidHeader"));
}
if (endChunk) {
parseEndChunk();
@@ -181,7 +181,7 @@ public class ChunkedInputFilter implements InputFilter,
ApplicationBufferHandler
if (readChunk == null || readChunk.position() >= readChunk.limit()) {
if (readBytes() < 0) {
- throwIOException(sm.getString("chunkedInputFilter.eos"));
+ throwEOFException(sm.getString("chunkedInputFilter.eos"));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]