Commit 3a996c13 authored by astaxie's avatar astaxie

Merge pull request #383 from pengfei-xue/devel

delete write body from context.Redirect
parents b9fdbdf7 65b9011b
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment