From 65b9011bc16cd7fd328aff733dd15c3494dda464 Mon Sep 17 00:00:00 2001 From: Pengfei Xue Date: Tue, 17 Dec 2013 08:18:01 +0800 Subject: [PATCH] delete write body from context.Redirect --- context/context.go | 1 - 1 file changed, 1 deletion(-) diff --git a/context/context.go b/context/context.go index 18d098f1..e2a82652 100644 --- a/context/context.go +++ b/context/context.go @@ -16,7 +16,6 @@ type Context struct { func (ctx *Context) Redirect(status int, localurl string) { ctx.Output.Header("Location", localurl) ctx.Output.SetStatus(status) - ctx.Output.Body([]byte(" ")) } func (ctx *Context) Abort(status int, body string) {