mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 23:40:50 +00:00
Update context.go
all this status was setting in error.go, this line will cause multi-resp
This commit is contained in:
parent
a89f14d80d
commit
b8fc42d38d
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user