1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 05:44:14 +00:00

when Redirect delete output

This commit is contained in:
astaxie 2012-12-25 15:36:19 +08:00
parent 2417464c35
commit d80ba7b084

View File

@ -26,7 +26,6 @@ func (ctx *Context) Abort(status int, body string) {
func (ctx *Context) Redirect(status int, url_ string) {
ctx.ResponseWriter.Header().Set("Location", url_)
ctx.ResponseWriter.WriteHeader(status)
ctx.ResponseWriter.Write([]byte("Redirecting to: " + url_))
}
func (ctx *Context) NotModified() {