File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
spring-web/src/main/java/org/springframework/web Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 65
65
public class ForwardedHeaderFilter extends OncePerRequestFilter {
66
66
67
67
private static final Set <String > FORWARDED_HEADER_NAMES =
68
- Collections .newSetFromMap (new LinkedCaseInsensitiveMap <>(5 , Locale .ENGLISH ));
68
+ Collections .newSetFromMap (new LinkedCaseInsensitiveMap <>(6 , Locale .ENGLISH ));
69
69
70
70
static {
71
71
FORWARDED_HEADER_NAMES .add ("Forwarded" );
Original file line number Diff line number Diff line change 16
16
package org .springframework .web .server .adapter ;
17
17
18
18
import java .net .URI ;
19
+ import java .util .Collections ;
19
20
import java .util .LinkedHashSet ;
21
+ import java .util .Locale ;
20
22
import java .util .Set ;
21
23
import java .util .function .Function ;
22
24
23
25
import org .springframework .http .HttpHeaders ;
24
26
import org .springframework .http .server .reactive .ServerHttpRequest ;
25
27
import org .springframework .lang .Nullable ;
28
+ import org .springframework .util .LinkedCaseInsensitiveMap ;
26
29
import org .springframework .web .util .UriComponentsBuilder ;
27
30
28
31
/**
39
42
*/
40
43
public class ForwardedHeaderTransformer implements Function <ServerHttpRequest , ServerHttpRequest > {
41
44
42
- static final Set <String > FORWARDED_HEADER_NAMES = new LinkedHashSet <>(5 );
45
+ static final Set <String > FORWARDED_HEADER_NAMES =
46
+ Collections .newSetFromMap (new LinkedCaseInsensitiveMap <>(6 , Locale .ENGLISH ));
43
47
44
48
static {
45
49
FORWARDED_HEADER_NAMES .add ("Forwarded" );
You can’t perform that action at this time.
0 commit comments