mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:11:31 +00:00
delete write body from context.Redirect
This commit is contained in:
parent
b9fdbdf7b5
commit
65b9011bc1
@ -16,7 +16,6 @@ type Context struct {
|
|||||||
func (ctx *Context) Redirect(status int, localurl string) {
|
func (ctx *Context) Redirect(status int, localurl string) {
|
||||||
ctx.Output.Header("Location", localurl)
|
ctx.Output.Header("Location", localurl)
|
||||||
ctx.Output.SetStatus(status)
|
ctx.Output.SetStatus(status)
|
||||||
ctx.Output.Body([]byte(" "))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ctx *Context) Abort(status int, body string) {
|
func (ctx *Context) Abort(status int, body string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user