1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:00:55 +00:00

Merge pull request #741 from smallfish/master

Update ctx.WriteString multiple buf output
This commit is contained in:
astaxie 2014-08-14 23:56:20 +08:00
commit ab71201c96

View File

@ -63,7 +63,7 @@ func (ctx *Context) Abort(status int, body string) {
// Write string to response body.
// it sends response body.
func (ctx *Context) WriteString(content string) {
ctx.Output.Body([]byte(content))
ctx.ResponseWriter.Write([]byte(content))
}
// Get cookie from request by a given key.