1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:20:54 +00:00

Merge pull request #1329 from ElvizLai/patch-1

Update error.go
This commit is contained in:
astaxie 2015-08-28 22:33:20 +08:00
commit 306effa300

View File

@ -453,7 +453,6 @@ 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
}