This is an automated email from the ASF dual-hosted git repository.

rmaucher 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 571c695477 Add a couple rather obvious disallowed headers
571c695477 is described below

commit 571c6954778c92cb36994f5c9b702ba370ee5d4b
Author: remm <[email protected]>
AuthorDate: Tue Nov 17 10:49:44 2026 +0100

    Add a couple rather obvious disallowed headers
---
 java/org/apache/tomcat/util/http/HeaderUtil.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/java/org/apache/tomcat/util/http/HeaderUtil.java 
b/java/org/apache/tomcat/util/http/HeaderUtil.java
index dd78e8cbdc..c3f5bf5401 100644
--- a/java/org/apache/tomcat/util/http/HeaderUtil.java
+++ b/java/org/apache/tomcat/util/http/HeaderUtil.java
@@ -37,8 +37,10 @@ public class HeaderUtil {
         disallowedTrailerFieldNames.add("content-type");
         disallowedTrailerFieldNames.add("date");
         disallowedTrailerFieldNames.add("expires");
+        disallowedTrailerFieldNames.add("host");
         disallowedTrailerFieldNames.add("location");
         disallowedTrailerFieldNames.add("retry-after");
+        disallowedTrailerFieldNames.add("te");
         disallowedTrailerFieldNames.add("trailer");
         disallowedTrailerFieldNames.add("transfer-encoding");
         disallowedTrailerFieldNames.add("vary");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to