fix(auth): unified empty path for sign content (#2616)

pull/2507/head^2
Aaron Liu 2025-07-05 10:05:09 +08:00
parent fe2ccb4d4e
commit 75a03aa708
1 changed files with 3 additions and 0 deletions

View File

@ -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
}