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

@ -55,7 +55,7 @@ func Proxy(c *gin.Context) {
if ok {
URL := fmt.Sprintf("%s%s?sign=%s",
strings.Split(downProxyUrl, "\n")[0],
utils.EncodePath(rawPath),
utils.EncodePath(rawPath, true),
sign.Sign(filename))
c.Redirect(302, URL)
return