mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:20:55 +00:00
Don't rewrite content-type
This commit is contained in:
parent
90999717dd
commit
8fac2d8d58
@ -185,7 +185,11 @@ func (c *Controller) Render() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
c.Ctx.Output.Header("Content-Type", "text/html; charset=utf-8")
|
||||
|
||||
if c.Ctx.ResponseWriter.Header().Get("Content-Type") == "" {
|
||||
c.Ctx.Output.Header("Content-Type", "text/html; charset=utf-8")
|
||||
}
|
||||
|
||||
return c.Ctx.Output.Body(rb)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user