mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 23:02:41 +01:00
Handle urls with trailing slash (#14852)
This commit is contained in:
parent
def964e57f
commit
a050de8db3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue