feat: encode path of url (close #1351)

This commit is contained in:
Noah Hsu
2022-08-12 14:51:23 +08:00
parent 0f853c86da
commit 06e15fc149
4 changed files with 4 additions and 4 deletions

View File

@ -250,7 +250,7 @@ func FsGet(c *gin.Context) {
} else {
rawURL = fmt.Sprintf("%s/p%s?sign=%s",
common.GetApiUrl(c.Request),
utils.EncodePath(req.Path),
utils.EncodePath(req.Path, true),
sign.Sign(obj.GetName()))
}
} else {