Update ctx.WriteString multiple buf output
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -62,7 +62,7 @@ func (ctx *Context) Abort(status int, body string) { | ... | @@ -62,7 +62,7 @@ func (ctx *Context) Abort(status int, body string) { |
| 62 | // Write string to response body. | 62 | // Write string to response body. |
| 63 | // it sends response body. | 63 | // it sends response body. |
| 64 | func (ctx *Context) WriteString(content string) { | 64 | func (ctx *Context) WriteString(content string) { |
| 65 | ctx.Output.Body([]byte(content)) | 65 | ctx.ResponseWriter.Write([]byte(content)) |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | // Get cookie from request by a given key. | 68 | // Get cookie from request by a given key. | ... | ... |
-
Please register or sign in to post a comment