Tomcat returns 400 for a request containing an invalid Host header
Issue
- We have some requests with an invalid host header, such as the scheme being included in it (http://localhost:8080). Such requests were accepted previously but now receive 400 responses after upgrading Tomcat.
Environment
- JBoss Web Server (JWS) 5.x
- Tomcat
- 8.0.52+
- 9.0.5+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.