This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 0c1598adde Don't unintentionally create a limit on number of trailer
headers
0c1598adde is described below
commit 0c1598addee5d94f46d1526392f31acf6ac9b911
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 b34386c4db..615735d53e 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -1106,6 +1106,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]