spring-framework/spring-web
Simon Baslé ef77b4064f Keep DefaultServerHttpRequestBuilder-mutated headers case-insensitive
This change avoids the trap of creating a copy of `HttpHeaders` using a
case-sensitive `MultiValueMap` by mistake. Since mutability is always
desirable, we make a mutable copy by using `addAll` on an empty
`HttpHeaders`.

We can't simply rely on HttpHeaders' map-based constructor to detect
read-only header in this particular case, because the container's
original headers representation might in some cases be read-only.

Closes gh-33666
2024-10-09 11:39:33 +02:00
..
src Keep DefaultServerHttpRequestBuilder-mutated headers case-insensitive 2024-10-09 11:39:33 +02:00
spring-web.gradle Implement Eclipse Jetty core HTTP handler adapter 2024-07-08 18:36:46 +02:00