mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2024-04-21 12:31:40 +00:00
fix file redirect status code
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user