Browse Source

NettyHeadersAdapter::putAll does not overwrite headers

Similar to 4078b73cec, but for the
client-side NettyHeadersAdapter::putAll.

See gh-27887
pull/28119/head
Arjen Poutsma 3 years ago
parent
commit
a490723f02
  1. 2
      spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java

2
spring-web/src/main/java/org/springframework/http/client/reactive/NettyHeadersAdapter.java

@ -147,7 +147,7 @@ class NettyHeadersAdapter implements MultiValueMap<String, String> { @@ -147,7 +147,7 @@ class NettyHeadersAdapter implements MultiValueMap<String, String> {
@Override
public void putAll(Map<? extends String, ? extends List<String>> map) {
map.forEach(this.headers::add);
map.forEach(this.headers::set);
}
@Override

Loading…
Cancel
Save