1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-29 11:04:14 +00:00

Merge branch 'master' into develop

This commit is contained in:
astaxie 2014-08-19 09:49:07 +08:00
commit 26da23266a

View File

@ -49,7 +49,7 @@ type Context struct {
// It sends http response header directly. // It sends http response header directly.
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.ResponseWriter.WriteHeader(status)
} }
// Abort stops this request. // Abort stops this request.