mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
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
Block a user