mirror of https://github.com/grpc/grpc-java.git
core: Pass Locality to toLowerCase() in GrpcUtil
We pretty much never want to use the system locality, across all our code.
This commit is contained in:
parent
708497b6ed
commit
8ca99f661d
|
|
@ -59,6 +59,7 @@ import java.util.Collection;
|
|||
import java.util.Collections;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
|
@ -436,7 +437,7 @@ public final class GrpcUtil {
|
|||
return false;
|
||||
}
|
||||
|
||||
contentType = contentType.toLowerCase();
|
||||
contentType = contentType.toLowerCase(Locale.US);
|
||||
if (!contentType.startsWith(CONTENT_TYPE_GRPC)) {
|
||||
// Not a gRPC content-type.
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue