1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-11 17:01:01 +00:00

return write body error

This commit is contained in:
ysqi
2016-02-12 11:36:25 +08:00
parent 810f6db8d2
commit d35c50a8e0
2 changed files with 7 additions and 10 deletions

View File

@ -185,8 +185,7 @@ func (c *Controller) Render() error {
return err
}
c.Ctx.Output.Header("Content-Type", "text/html; charset=utf-8")
c.Ctx.Output.Body(rb)
return nil
return c.Ctx.Output.Body(rb)
}
// RenderString returns the rendered template string. Do not send out response.