This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 9ce2f655b3 Don't unintentionally create a limit on number of trailer
headers
9ce2f655b3 is described below
commit 9ce2f655b3ed45a613c75b2662d3585c54965b66
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 5 19:16:09 2026 +0100
Don't unintentionally create a limit on number of trailer headers
---
java/org/apache/coyote/Request.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/org/apache/coyote/Request.java
b/java/org/apache/coyote/Request.java
index 7e5cb766b8..6b378e0ac1 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -1209,6 +1209,7 @@ public final class Request {
* instance.
*/
trailerFields.setLimit(MimeHeaders.DEFAULT_HEADER_SIZE);
+ trailerFields.setLimit(-1);
serverNameMB.recycle();
serverPort = -1;
localAddrMB.recycle();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]