1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 07:30:50 +00:00

Merge pull request #1647 from youngsterxyf/fix-issue1641

fix issue #1641
This commit is contained in:
astaxie 2016-02-02 09:23:12 +08:00
commit 631b4d36f9

View File

@ -424,6 +424,7 @@ func exception(errCode string, ctx *context.Context) {
func executeError(err *errorInfo, ctx *context.Context, code int) {
if err.errorType == errorTypeHandler {
ctx.ResponseWriter.WriteHeader(code)
err.handler(ctx.ResponseWriter, ctx.Request)
return
}