Commit 464d0805 authored by zhujianjian's avatar zhujianjian

fix httpcode in prod

parent f1668881
......@@ -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