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:
parent
003b0adaa5
commit
f4dde46fed
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user