diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index cbc6641..ccc8de7 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -220,5 +220,8 @@ func getUrlSignContent(ctx context.Context, url *url.URL) string { // host = strings.TrimSuffix(host, "/") // // remove port if it exists // host = strings.Split(host, ":")[0] + if url.Path == "" { + return "/" + } return url.Path }