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

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

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