Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Weidi Deng
67e663c0fe fix file redirect status code 2023-07-15 18:30:52 +08:00
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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",