Skip to content

Commit

Permalink
fix: download sign check
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 4, 2022
1 parent 9d20c88 commit 778cee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/middlewares/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Down(c *gin.Context) {
c.Set("meta", meta)
// verify sign
if needSign(meta, rawPath) {
s := c.Param("sign")
s := c.Query("sign")
err = sign.Verify(filename, s)
if err != nil {
common.ErrorResp(c, err, 401)
Expand Down

0 comments on commit 778cee4

Please sign in to comment.