mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-10 09:09:04 +00:00
Prior to this commit, `HttpHeaders(MultiValueMap)` stored its argument as-is. Code compiled against Framework 6.x still links to this constructor when passing an `HttpHeaders`, which is no longer a `MultiValueMap`. The resulting instance failed later with an `IncompatibleClassChangeError`. This commit unwraps `HttpHeaders` arguments in the constructor and in `formatHeaders(MultiValueMap)`, as is already done for `HttpHeaders(HttpHeaders)`. Closes gh-37358