Unverified Commit 9c9ba012 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3226 from jianjianzhu/master

 Fix the wrong status code in prod
parents f1573279 464d0805
......@@ -182,6 +182,7 @@ func recoverPanic(ctx *context.Context) {
if BConfig.RunMode == DEV && BConfig.EnableErrorsRender {
showErr(err, ctx, stack)
}
ctx.ResponseWriter.WriteHeader(500)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment