diff --git a/spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java b/spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java index 382203b34b..fc35a13fcd 100644 --- a/spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java +++ b/spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java @@ -147,7 +147,7 @@ class NettyHeadersAdapter implements MultiValueMap { @Override public void putAll(Map> map) { - map.forEach(this.headers::add); + map.forEach(this.headers::set); } @Override