Andy Wilkinson opened SPR-16778 and commented
The various request adapters in WebFlux do not all handle a request with an illegal Host header in the same way. ReactorHttpHandlerAdapter catches a URISyntaxException and maps it to a 400 response. UndertowHttpHandlerAdapter and ServletHttpHandlerAdapter do not catch URISyntaxException which results in a 500 response.
Affects: 5.0.5
Reference URL: spring-projects/spring-boot#12987
Issue Links:
Referenced from: commits b0aa08a, 8d157cb