File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-kafka/src/main/java/org/springframework/kafka/support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2424import java .util .Collections ;
2525import java .util .HashMap ;
2626import java .util .List ;
27+ import java .util .Locale ;
2728import java .util .Map ;
2829import java .util .Set ;
2930import java .util .stream .Collectors ;
@@ -352,13 +353,13 @@ protected SimplePatternBasedHeaderMatcher(String pattern) {
352353
353354 SimplePatternBasedHeaderMatcher (String pattern , boolean negate ) {
354355 Assert .notNull (pattern , "Pattern must no be null" );
355- this .pattern = pattern .toLowerCase ();
356+ this .pattern = pattern .toLowerCase (Locale . ROOT );
356357 this .negate = negate ;
357358 }
358359
359360 @ Override
360361 public boolean matchHeader (String headerName ) {
361- String header = headerName .toLowerCase ();
362+ String header = headerName .toLowerCase (Locale . ROOT );
362363 if (PatternMatchUtils .simpleMatch (this .pattern , header )) {
363364 LOGGER .debug (() ->
364365 MessageFormat .format (
You can’t perform that action at this time.
0 commit comments