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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.