Tomcat response contains multiple transfer-encoding headers

Solution Verified - Updated -

Issue

  • We are seeing multiple transfer-encoding headers in the response from our application on Tomcat. This is cause issues with the response on the client side or causing intermediary gateways/balancers to reject the response due to the duplicate header.
  • A duplicate header is not seen like this if the application runs on EAP 7/Undertow.

Environment

  • JBoss Web Server (JWS) 5.x
    • Tomcat 9.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content