🐛 fix webdav can't get file with password

pull/548/head
微凉 2022-01-19 18:46:32 +08:00
parent e12d8bb8ca
commit 75a983a965
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func (fs *FileSystem) Link(r *http.Request, rawPath string) (string, error) {
link = fmt.Sprintf("%s://%s/p%s", protocol, r.Host, rawPath)
if conf.GetBool("check down link") {
sign := utils.SignWithToken(utils.Base(rawPath), conf.Token)
link += "?sign" + sign
link += "?sign=" + sign
}
} else {
link_, err := driver.Link(base.Args{Path: path_, IP: ClientIP(r)}, account)