Fix: redirect should be 302 status in dashboard
This commit is contained in:
parent
175c4d781f
commit
c4c174f560
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ func AdminGetFile(c *gin.Context) {
|
|||
res := service.Get(c)
|
||||
// 是否需要重定向
|
||||
if res.Code == -301 {
|
||||
c.Redirect(301, res.Data.(string))
|
||||
c.Redirect(302, res.Data.(string))
|
||||
return
|
||||
}
|
||||
// 是否有错误发生
|
||||
|
|
Loading…
Reference in a new issue