1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-22 23:10:19 +00:00

Merge pull request #3226 from jianjianzhu/master

Fix the wrong status code in prod
This commit is contained in:
astaxie
2018-07-20 14:53:08 +08:00
committed by GitHub

View File

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