1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:30:56 +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
commit 9c9ba0129f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
} }
} }