fix(auth): unified empty path for sign content (#2616)
This commit is contained in:
@@ -220,5 +220,8 @@ func getUrlSignContent(ctx context.Context, url *url.URL) string {
|
|||||||
// host = strings.TrimSuffix(host, "/")
|
// host = strings.TrimSuffix(host, "/")
|
||||||
// // remove port if it exists
|
// // remove port if it exists
|
||||||
// host = strings.Split(host, ":")[0]
|
// host = strings.Split(host, ":")[0]
|
||||||
|
if url.Path == "" {
|
||||||
|
return "/"
|
||||||
|
}
|
||||||
return url.Path
|
return url.Path
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user