mirror of
https://github.com/go-gitea/gitea
synced 2024-09-27 06:44:06 +00:00
wrapper the middleware
This commit is contained in:
parent
07e765c63d
commit
e6b860e28f
@ -246,7 +246,9 @@ func Routes() *web.Route {
|
||||
if err != nil {
|
||||
log.Fatal("GzipHandlerWithOpts failed: %v", err)
|
||||
}
|
||||
mid = append(mid, wrapper)
|
||||
mid = append(mid, func(h http.Handler) http.Handler {
|
||||
return wrapper(h)
|
||||
})
|
||||
}
|
||||
|
||||
if setting.Service.EnableCaptcha {
|
||||
|
Loading…
Reference in New Issue
Block a user