Skip to content

Commit 0f726ca

Browse files
authoredJan 26, 2021
Fix panic 500 page rendering (#14474)
1 parent afbddf1 commit 0f726ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎routers/routes/web.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ func NormalRoutes() *web.Route {
101101
for _, middle := range commonMiddlewares() {
102102
r.Use(middle)
103103
}
104-
r.Use(Recovery())
105104

106105
r.Mount("/", WebRoutes())
107106
r.Mount("/api/v1", apiv1.Routes())
@@ -124,6 +123,8 @@ func WebRoutes() *web.Route {
124123
Domain: setting.SessionConfig.Domain,
125124
}))
126125

126+
r.Use(Recovery())
127+
127128
r.Use(public.Custom(
128129
&public.Options{
129130
SkipLogging: setting.DisableRouterLog,

0 commit comments

Comments
 (0)
Please sign in to comment.