mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-12-15 10:04:01 +08:00
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, "/")
|
||||
// // remove port if it exists
|
||||
// host = strings.Split(host, ":")[0]
|
||||
if url.Path == "" {
|
||||
return "/"
|
||||
}
|
||||
return url.Path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user