Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/go/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (provider *Credential) GetRequestMetadata(ctx context.Context, uri ...strin
return map[string]string{}, nil
}
return map[string]string{
"Authorization": "Bearer: " + token.AccessToken,
"Authorization": "Bearer " + token.AccessToken,
}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/go/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func TestCredentials(t *testing.T) {
t.Errorf("Expected authentication metadata with key: '%s'", authKey)
}

expectedVal := "Bearer: " + tc.want
expectedVal := "Bearer " + tc.want
if meta[authKey] != expectedVal {
t.Errorf("Expected authentication metadata with value: '%s' Got instead: '%s'", expectedVal, meta[authKey])
}
Expand Down