2
0

Handle urls with trailing slash (#14852)

This commit is contained in:
Norwin
2021-03-02 16:23:36 +00:00
committed by GitHub
parent bd7fa9157e
commit be3eca2bda

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 {