1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Fixed build

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2018-03-14 22:59:15 -07:00
parent 003b0adaa5
commit f4dde46fed

View File

@ -213,7 +213,7 @@ var (
func (c *context) writeContentType(value string) { func (c *context) writeContentType(value string) {
header := c.Response().Header() header := c.Response().Header()
if header.Get(HeaderContentType) != "" { if header.Get(HeaderContentType) == "" {
header.Set(HeaderContentType, value) header.Set(HeaderContentType, value)
} }
} }