Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Mar 15, 2018
1 parent 003b0ad commit f4dde46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ var (

func (c *context) writeContentType(value string) {
header := c.Response().Header()
if header.Get(HeaderContentType) != "" {
if header.Get(HeaderContentType) == "" {
header.Set(HeaderContentType, value)
}
}
Expand Down

0 comments on commit f4dde46

Please sign in to comment.