mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:10:54 +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.
|
// Abort stops this request.
|
||||||
// if beego.ErrorMaps exists, panic body.
|
// if beego.ErrorMaps exists, panic body.
|
||||||
func (ctx *Context) Abort(status int, body string) {
|
func (ctx *Context) Abort(status int, body string) {
|
||||||
ctx.ResponseWriter.WriteHeader(status)
|
|
||||||
panic(body)
|
panic(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user