diff --git a/context/context.go b/context/context.go index 90d21c9c..26753a6a 100644 --- a/context/context.go +++ b/context/context.go @@ -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.