Makes ProxyExchange.DEFAULT_SENSITIVE read only.
Fixes gh-2413
This commit is contained in:
@@ -140,7 +140,8 @@ public class ProxyExchange<T> {
|
||||
/**
|
||||
* Contains headers that are considered case-sensitive by default.
|
||||
*/
|
||||
public static Set<String> DEFAULT_SENSITIVE = new HashSet<>(Arrays.asList("cookie", "authorization"));
|
||||
public static Set<String> DEFAULT_SENSITIVE = Collections
|
||||
.unmodifiableSet(new HashSet<>(Arrays.asList("cookie", "authorization")));
|
||||
|
||||
private URI uri;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ import java.lang.reflect.Type;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
@@ -113,7 +114,8 @@ public class ProxyExchange<T> {
|
||||
/**
|
||||
* Contains headers that are considered case-sensitive by default.
|
||||
*/
|
||||
public static Set<String> DEFAULT_SENSITIVE = new HashSet<>(Arrays.asList("cookie", "authorization"));
|
||||
public static Set<String> DEFAULT_SENSITIVE = Collections
|
||||
.unmodifiableSet(new HashSet<>(Arrays.asList("cookie", "authorization")));
|
||||
|
||||
private HttpMethod httpMethod;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user