mirror of
https://github.com/astaxie/beego.git
synced 2025-06-20 20:50:18 +00:00
beego: fix #702 auto render
This commit is contained in:
@ -720,12 +720,11 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
//render template
|
||||
if !w.started {
|
||||
if !w.started && context.Output.Status == 0 {
|
||||
if AutoRender {
|
||||
if err := execController.Render(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user