Update ctx.WriteString multiple buf output

This commit is contained in:
smallfish 2014-08-14 21:37:52 +08:00
parent 20463fa725
commit 75e2611cc4
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,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.