1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 04:01:29 +00:00

fix httpcode in prod

This commit is contained in:
zhujianjian 2018-07-02 11:21:06 +08:00
parent f16688817a
commit 464d080518

View File

@ -182,6 +182,7 @@ func recoverPanic(ctx *context.Context) {
if BConfig.RunMode == DEV && BConfig.EnableErrorsRender { if BConfig.RunMode == DEV && BConfig.EnableErrorsRender {
showErr(err, ctx, stack) showErr(err, ctx, stack)
} }
ctx.ResponseWriter.WriteHeader(500)
} }
} }