ServerWebExchange.mutate() does not delegate modified headers back to calling instance #34067
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Prior to spring-web-6.2.0 calling the
mutate()
method ofServerWebExchange
and modifying the request headers would mutate the values in the calling instance of exchange object. This behavior matches the documentation ofmutate()
method. But this no longer works with version 6.2.0.Dependency package: spring-web
Last working version: 6.1.13
Issue found in version: 6.2.0
MRE
Java version: 17
Dependencies: spring-boot-starter-webflux:3.4.0 (spring-web:6.2.0), spring-boot-starter-test:3.4.0
Following test fails:
Using
mutate().build()
and using the returned exchange object still works as it did in version 6.1.13.The text was updated successfully, but these errors were encountered: