Skip to content

Commit 5b85805

Browse files
committed
Fixup 12494: Rename variable
1 parent cd176e4 commit 5b85805

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xds/src/main/java/io/grpc/xds/internal/headermutations/HeaderMutationFilter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ private boolean isHeaderMutationAllowed(String headerName) {
9292
.orElse(true);
9393
}
9494

95-
private boolean isHeaderMutationAllowed(String lowerCaseHeaderName,
96-
HeaderMutationRulesConfig rules) {
95+
private boolean isHeaderMutationAllowed(String headerName,
96+
HeaderMutationRulesConfig rules) {
9797
if (rules.disallowExpression().isPresent()
98-
&& rules.disallowExpression().get().matcher(lowerCaseHeaderName).matches()) {
98+
&& rules.disallowExpression().get().matcher(headerName).matches()) {
9999
return false;
100100
}
101101
if (rules.allowExpression().isPresent()) {
102-
return rules.allowExpression().get().matcher(lowerCaseHeaderName).matches();
102+
return rules.allowExpression().get().matcher(headerName).matches();
103103
}
104104
return !rules.disallowAll();
105105
}

0 commit comments

Comments
 (0)