Merge pull request #8680 from mitake/auth-cleanup

*: don't use a string literal directly in grpc metadata
This commit is contained in:
Hitoshi Mitake
2018-03-20 18:19:23 +09:00
committed by GitHub
7 changed files with 55 additions and 30 deletions

View File

@ -180,7 +180,7 @@ func (cred authTokenCredential) GetRequestMetadata(ctx context.Context, s ...str
cred.tokenMu.RLock()
defer cred.tokenMu.RUnlock()
return map[string]string{
"token": cred.token,
rpctypes.TokenFieldNameGRPC: cred.token,
}, nil
}