mirror of https://github.com/astaxie/beego.git
commit
dc3e324f38
|
@ -55,7 +55,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