Skip to content

Commit

Permalink
fix: missing args when using alias driver (#7941 close #7932)
Browse files Browse the repository at this point in the history
  • Loading branch information
hshpy authored Feb 5, 2025
1 parent 39bde32 commit 6164e45
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/handles/fsread.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,10 @@ func FsGet(c *gin.Context) {
} else {
// if storage is not proxy, use raw url by fs.Link
link, _, err := fs.Link(c, reqPath, model.LinkArgs{
IP: c.ClientIP(),
Header: c.Request.Header,
HttpReq: c.Request,
IP: c.ClientIP(),
Header: c.Request.Header,
HttpReq: c.Request,
Redirect: true,
})
if err != nil {
common.ErrorResp(c, err, 500)
Expand Down

0 comments on commit 6164e45

Please # to comment.