mirror of https://github.com/grpc/grpc-java.git
Merge 844bbe9c1a
into 1fc4ab0bb2
This commit is contained in:
commit
1eb0989940
|
@ -77,7 +77,7 @@ public final class ClientAuthInterceptor implements ClientInterceptor {
|
||||||
// JWT. However, today it does not cache JWT and so we won't bother tring to cache its
|
// JWT. However, today it does not cache JWT and so we won't bother tring to cache its
|
||||||
// return value based on the URI.
|
// return value based on the URI.
|
||||||
Map<String, List<String>> latestMetadata = getRequestMetadata(uri);
|
Map<String, List<String>> latestMetadata = getRequestMetadata(uri);
|
||||||
if (lastMetadata == null || lastMetadata != latestMetadata) {
|
if (lastMetadata.equals(null) || !Objects.equals(lastMetadata, latestMetadata)) {
|
||||||
lastMetadata = latestMetadata;
|
lastMetadata = latestMetadata;
|
||||||
cached = toHeaders(lastMetadata);
|
cached = toHeaders(lastMetadata);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue