Browse Source

Make a copy of the sensitive headers.

pull/656/head
Ryan Baxter 6 years ago
parent
commit
9a78e361e0
  1. 3
      spring-cloud-gateway-webflux/src/main/java/org/springframework/cloud/gateway/webflux/ProxyExchange.java

3
spring-cloud-gateway-webflux/src/main/java/org/springframework/cloud/gateway/webflux/ProxyExchange.java

@ -136,7 +136,8 @@ public class ProxyExchange<T> { @@ -136,7 +136,8 @@ public class ProxyExchange<T> {
this.bindingContext = bindingContext;
this.responseType = type;
this.rest = rest;
this.sensitive = DEFAULT_SENSITIVE;
this.sensitive = new HashSet<>(DEFAULT_SENSITIVE.size());
this.sensitive.addAll(DEFAULT_SENSITIVE);
}
/**

Loading…
Cancel
Save