Merge pull request #732 from broady/master

credentials/oauth: default to Bearer token type
This commit is contained in:
Qi Zhao
2016-06-24 13:21:16 -07:00
committed by GitHub

View File

@ -57,7 +57,7 @@ func (ts TokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (ma
return nil, err
}
return map[string]string{
"authorization": token.TokenType + " " + token.AccessToken,
"authorization": token.Type() + " " + token.AccessToken,
}, nil
}