mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-10 01:18:49 +03:00
Handle urls with trailing slash (#14852)
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user