mirror of https://github.com/cloudreve/Cloudreve
fix(auth): unified empty path for sign content (#2616)
parent
fe2ccb4d4e
commit
75a03aa708
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue