Handle urls with trailing slash (#14852)

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

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

Loading…
Cancel
Save