mirror of
https://github.com/labstack/echo.git
synced 2025-07-01 00:55:04 +02:00
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user