fix file redirect status code

redirect-status
Weidi Deng 1 year ago
parent a26893aabc
commit 67e663c0fe

@ -279,7 +279,7 @@ func (h *Handler) handleGetHeadPost(w http.ResponseWriter, r *http.Request, fs *
return 0, nil
}
http.Redirect(w, r, rs.URL, 301)
http.Redirect(w, r, rs.URL, 302)
return 0, nil
}

@ -225,7 +225,7 @@ func InitMasterRouter() *gin.Engine {
middleware.StaticResourceCache(),
controllers.AnonymousGetContent,
)
// 文件外链(301跳转)
// 文件外链(302跳转)
file.GET("source/:id/:name", controllers.AnonymousPermLinkDeprecated)
// 下载文件
file.GET("download/:id",

Loading…
Cancel
Save