mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:30:56 +00:00
beego: fix #702 auto render
This commit is contained in:
parent
ae8bb8ce82
commit
d17f107fc4
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user