diff --git a/context/context.go b/context/context.go index fb9c6d96..8f1144f3 100644 --- a/context/context.go +++ b/context/context.go @@ -55,7 +55,6 @@ func (ctx *Context) Redirect(status int, localurl string) { // Abort stops this request. // if beego.ErrorMaps exists, panic body. func (ctx *Context) Abort(status int, body string) { - ctx.ResponseWriter.WriteHeader(status) panic(body) }