Compare commits
1 commit
master
...
redirect-s
Author | SHA1 | Date | |
---|---|---|---|
|
67e663c0fe |
2 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ func (h *Handler) handleGetHeadPost(w http.ResponseWriter, r *http.Request, fs *
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
http.Redirect(w, r, rs.URL, 301)
|
http.Redirect(w, r, rs.URL, 302)
|
||||||
|
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,7 +225,7 @@ func InitMasterRouter() *gin.Engine {
|
||||||
middleware.StaticResourceCache(),
|
middleware.StaticResourceCache(),
|
||||||
controllers.AnonymousGetContent,
|
controllers.AnonymousGetContent,
|
||||||
)
|
)
|
||||||
// 文件外链(301跳转)
|
// 文件外链(302跳转)
|
||||||
file.GET("source/:id/:name", controllers.AnonymousPermLinkDeprecated)
|
file.GET("source/:id/:name", controllers.AnonymousPermLinkDeprecated)
|
||||||
// 下载文件
|
// 下载文件
|
||||||
file.GET("download/:id",
|
file.GET("download/:id",
|
||||||
|
|
Loading…
Add table
Reference in a new issue