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

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

commit f8f78b822a1aa9cf0dd8ff454d4237ef77c906dd
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