Merge pull request #741 from smallfish/master
Update ctx.WriteString multiple buf output
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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. | ... | ... |
-
Please register or sign in to post a comment