when Redirect delete output
Showing
1 changed file
with
0 additions
and
1 deletions
| ... | @@ -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() { | ... | ... |
-
Please register or sign in to post a comment