Bug 65267

Summary: Implement mod_headers like filter
Product: Tomcat 10 Reporter: Mark Thomas <markt>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: NEW ---    
Severity: enhancement CC: hauser
Priority: P2    
Version: unspecified   
Target Milestone: ------   
Hardware: All   
OS: All   

Description Mark Thomas 2021-04-27 11:42:46 UTC
We are seeing an increasing number of issues caused by poorly written applications writing invalid and/or inappropriate HTTP headers. A common example is a simple HTTP proxy that blindly copies all the HTTP response headers it receives. When this includes per-hop headers such as Transfer-Encoding breakage often follows.

The most recent discussion on this topic was on the dev list:

This discussion concluded a mod_headers like filter would address this issue and be a useful addition to Tomcat. This enhancement request is to implement such a Filter.

The expectation is that it would be back-ported to 9.0.x and 8.5.x.
Comment 1 Mark Thomas 2021-05-06 15:57:07 UTC
Link to more recent discussion where an alternative solution was discussed:
Comment 2 Mark Thomas 2021-05-11 16:01:23 UTC
*** Bug 58837 has been marked as a duplicate of this bug. ***