From d32f94c75ed8d02c45dcf8ab3d9ce2c06bd78c98 Mon Sep 17 00:00:00 2001 From: Chris Broadfoot Date: Fri, 24 Jun 2016 10:39:34 -0700 Subject: [PATCH] credentials/oauth: default to Bearer token type --- credentials/oauth/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/credentials/oauth/oauth.go b/credentials/oauth/oauth.go index d54a3158..8e68c4d7 100644 --- a/credentials/oauth/oauth.go +++ b/credentials/oauth/oauth.go @@ -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 }