0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 09:04:38 +01:00

Handle urls with trailing slash (#14852)

This commit is contained in:
Norwin 2021-03-02 16:23:36 +00:00 committed by GitHub
parent def964e57f
commit a050de8db3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,7 @@ func commonMiddlewares() []func(http.Handler) http.Handler {
})
},
middleware.RealIP,
middleware.StripSlashes,
}
if !setting.DisableRouterLog && setting.RouterLogLevel != log.NONE {
if log.GetLogger("router").GetLevel() <= setting.RouterLogLevel {