Update context.go

all this status was setting in error.go, this line will cause multi-resp
This commit is contained in:
Yongzheng Lai 2015-11-05 21:20:57 +08:00
parent a89f14d80d
commit b8fc42d38d
1 changed files with 0 additions and 1 deletions

View File

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