How to always add "Content-Length" header to HTTP responses in JBoss EAP

Solution Verified - Updated -

Issue

  • How to always add Content-Length header to HTTP/1.0 responses in JBoss EAP
  • Is there any JBoss out-of-box configuration to force the Content-Length header to be used?
  • How can I force JBossWeb to not use HTTP chunking in its responses?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.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