mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Fix: redirect should be 302 status in dashboard
This commit is contained in:
@@ -314,7 +314,7 @@ func AdminGetFile(c *gin.Context) {
|
|||||||
res := service.Get(c)
|
res := service.Get(c)
|
||||||
// 是否需要重定向
|
// 是否需要重定向
|
||||||
if res.Code == -301 {
|
if res.Code == -301 {
|
||||||
c.Redirect(301, res.Data.(string))
|
c.Redirect(302, res.Data.(string))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 是否有错误发生
|
// 是否有错误发生
|
||||||
|
|||||||
Reference in New Issue
Block a user