File tree 1 file changed +3
-2
lines changed
spring-kafka/src/main/java/org/springframework/kafka/support
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .Collections ;
25
25
import java .util .HashMap ;
26
26
import java .util .List ;
27
+ import java .util .Locale ;
27
28
import java .util .Map ;
28
29
import java .util .Set ;
29
30
import java .util .stream .Collectors ;
@@ -352,13 +353,13 @@ protected SimplePatternBasedHeaderMatcher(String pattern) {
352
353
353
354
SimplePatternBasedHeaderMatcher (String pattern , boolean negate ) {
354
355
Assert .notNull (pattern , "Pattern must no be null" );
355
- this .pattern = pattern .toLowerCase ();
356
+ this .pattern = pattern .toLowerCase (Locale . ROOT );
356
357
this .negate = negate ;
357
358
}
358
359
359
360
@ Override
360
361
public boolean matchHeader (String headerName ) {
361
- String header = headerName .toLowerCase ();
362
+ String header = headerName .toLowerCase (Locale . ROOT );
362
363
if (PatternMatchUtils .simpleMatch (this .pattern , header )) {
363
364
LOGGER .debug (() ->
364
365
MessageFormat .format (
You can’t perform that action at this time.
0 commit comments