feat: add baidu_photo driver

This commit is contained in:
foxxorcat
2022-09-12 17:10:02 +08:00
parent 78e34f0d9f
commit 6b5236f52e
9 changed files with 994 additions and 2 deletions

View File

@ -270,7 +270,7 @@ func FsGet(c *gin.Context) {
}
} else {
// if storage is not proxy, use raw url by fs.Link
link, _, err := fs.Link(c, req.Path, model.LinkArgs{IP: c.ClientIP()})
link, _, err := fs.Link(c, req.Path, model.LinkArgs{IP: c.ClientIP(), Header: c.Request.Header})
if err != nil {
common.ErrorResp(c, err, 500)
return