From c4c174f560eda1ec56b2d475491ebae368b4ee67 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Wed, 18 Mar 2020 11:11:57 +0800 Subject: [PATCH] Fix: redirect should be 302 status in dashboard --- routers/controllers/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/controllers/admin.go b/routers/controllers/admin.go index 2b02e80..5f8e8de 100644 --- a/routers/controllers/admin.go +++ b/routers/controllers/admin.go @@ -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 } // 是否有错误发生