Skip to content

Commit

Permalink
Default content-type encoding set to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
DronRathore authored Jul 5, 2017
1 parent cd29893 commit 27f8028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (h *Header) FlushHeaders() bool{
}
// write the latest headers
if h.Get("Content-Type") == "" {
h.Set("Content-Type", "text/html")
h.Set("Content-Type", "text/html;charset=utf-8")
}
if err := h.response.Header().Write(h.writer); err!=nil {
return false
Expand Down Expand Up @@ -155,4 +155,4 @@ func (h *Header) sendBasics(){
h.Set("transfer-encoding", "chunked")
h.Set("connection", "keep-alive")
h.basicSent = true
}
}

0 comments on commit 27f8028

Please sign in to comment.