mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
wrapper the middleware
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user