1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 07:10:55 +00:00

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

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