0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-10-31 19:28:58 +01:00

Fix panic 500 page rendering (#14474)

This commit is contained in:
Lunny Xiao 2021-01-27 02:04:20 +08:00 committed by GitHub
parent afbddf1f0e
commit 0f726caf97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,6 @@ func NormalRoutes() *web.Route {
for _, middle := range commonMiddlewares() {
r.Use(middle)
}
r.Use(Recovery())
r.Mount("/", WebRoutes())
r.Mount("/api/v1", apiv1.Routes())
@ -124,6 +123,8 @@ func WebRoutes() *web.Route {
Domain: setting.SessionConfig.Domain,
}))
r.Use(Recovery())
r.Use(public.Custom(
&public.Options{
SkipLogging: setting.DisableRouterLog,