Merge pull request #383 from pengfei-xue/devel
delete write body from context.Redirect
Showing
1 changed file
with
0 additions
and
1 deletions
| ... | @@ -16,7 +16,6 @@ type Context struct { | ... | @@ -16,7 +16,6 @@ type Context struct { |
| 16 | func (ctx *Context) Redirect(status int, localurl string) { | 16 | func (ctx *Context) Redirect(status int, localurl string) { |
| 17 | ctx.Output.Header("Location", localurl) | 17 | ctx.Output.Header("Location", localurl) |
| 18 | ctx.Output.SetStatus(status) | 18 | ctx.Output.SetStatus(status) |
| 19 | ctx.Output.Body([]byte(" ")) | ||
| 20 | } | 19 | } |
| 21 | 20 | ||
| 22 | func (ctx *Context) Abort(status int, body string) { | 21 | func (ctx *Context) Abort(status int, body string) { | ... | ... |
-
Please register or sign in to post a comment