Commit b8fc42d3 authored by Yongzheng Lai's avatar Yongzheng Lai

Update context.go

all this status was setting in error.go, this line will cause multi-resp
parent a89f14d8
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment