From b8fc42d38dcaac48284bca16a5137881e6b85ff4 Mon Sep 17 00:00:00 2001 From: Yongzheng Lai Date: Thu, 5 Nov 2015 21:20:57 +0800 Subject: [PATCH] Update context.go all this status was setting in error.go, this line will cause multi-resp --- context/context.go | 1 - 1 file changed, 1 deletion(-) diff --git a/context/context.go b/context/context.go index f6aa85d6..30a47c02 100644 --- a/context/context.go +++ b/context/context.go @@ -54,7 +54,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) }