Skip to content

Commit 2e4b4cf

Browse files
Fix ApiSecret validation when ApiKey is not present
1 parent 77c3131 commit 2e4b4cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/uploader/upload.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ func (u *API) postAndSignForm(ctx context.Context, urlPath string, formParams ur
9797
}
9898

9999
func (u *API) signRequest(requestParams url.Values) (url.Values, error) {
100-
// No signing for OAuth Token
101-
if u.Config.Cloud.OAuthToken != "" {
100+
// No signing for OAuth Token or without API key
101+
if u.Config.Cloud.OAuthToken != "" || u.Config.Cloud.APIKey == "" {
102102
return requestParams, nil
103103
}
104104

0 commit comments

Comments
 (0)