ab71201c by astaxie

Merge pull request #741 from smallfish/master

Update ctx.WriteString multiple buf output
2 parents 564c3bbe 75e2611c
...@@ -63,7 +63,7 @@ func (ctx *Context) Abort(status int, body string) { ...@@ -63,7 +63,7 @@ func (ctx *Context) Abort(status int, body string) {
63 // Write string to response body. 63 // Write string to response body.
64 // it sends response body. 64 // it sends response body.
65 func (ctx *Context) WriteString(content string) { 65 func (ctx *Context) WriteString(content string) {
66 ctx.Output.Body([]byte(content)) 66 ctx.ResponseWriter.Write([]byte(content))
67 } 67 }
68 68
69 // Get cookie from request by a given key. 69 // Get cookie from request by a given key.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!