fix: missing args when using alias driver (#7941 close #7932)

pull/7964/head
hshpy 2025-02-05 19:22:10 +08:00 committed by GitHub
parent 39bde328ee
commit 6164e4577b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -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)