Browse Source

Handle urls with trailing slash (#14852)

mj-v1.14.3
Norwin 2 years ago
committed by GitHub
parent
commit
a050de8db3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/routes/web.go

1
routers/routes/web.go

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

Loading…
Cancel
Save