1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 19:20:59 +00:00

beego: fix #702 auto render

This commit is contained in:
astaxie 2014-07-18 13:29:54 +08:00
parent ae8bb8ce82
commit d17f107fc4

View File

@ -720,12 +720,11 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
} }
//render template //render template
if !w.started { if !w.started && context.Output.Status == 0 {
if AutoRender { if AutoRender {
if err := execController.Render(); err != nil { if err := execController.Render(); err != nil {
panic(err) panic(err)
} }
} }
} }
} }