d80ba7b0 by astaxie

when Redirect delete output

1 parent 2417464c
...@@ -26,7 +26,6 @@ func (ctx *Context) Abort(status int, body string) { ...@@ -26,7 +26,6 @@ func (ctx *Context) Abort(status int, body string) {
26 func (ctx *Context) Redirect(status int, url_ string) { 26 func (ctx *Context) Redirect(status int, url_ string) {
27 ctx.ResponseWriter.Header().Set("Location", url_) 27 ctx.ResponseWriter.Header().Set("Location", url_)
28 ctx.ResponseWriter.WriteHeader(status) 28 ctx.ResponseWriter.WriteHeader(status)
29 ctx.ResponseWriter.Write([]byte("Redirecting to: " + url_))
30 } 29 }
31 30
32 func (ctx *Context) NotModified() { 31 func (ctx *Context) NotModified() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!