1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-26 17:35:32 +00:00
This commit is contained in:
astaxie
2014-10-30 16:05:48 +08:00
parent 57e62e5e57
commit fda841208d
2 changed files with 10 additions and 23 deletions

View File

@@ -31,6 +31,7 @@ import (
"strings"
"time"
"github.com/astaxie/beego"
"github.com/astaxie/beego/middleware"
"github.com/astaxie/beego/utils"
)
@@ -69,7 +70,8 @@ func (ctx *Context) Abort(status int, body string) {
panic(e)
}
// last panic user string
panic(body)
ctx.ResponseWriter.Write([]byte(body))
panic(beego.USERSTOPRUN)
}
// Write string to response body.