From 75e2611cc4ae88e013dbd5d6ab7bd85dc831a255 Mon Sep 17 00:00:00 2001 From: smallfish Date: Thu, 14 Aug 2014 21:37:52 +0800 Subject: [PATCH] Update ctx.WriteString multiple buf output --- context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index 15a05c90..550b748f 100644 --- a/context/context.go +++ b/context/context.go @@ -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.