Specify utf-8 as content type charset on renderers

This commit is contained in:
Ignacio Galindo
2015-01-29 20:14:09 -06:00
parent dcad0df8f7
commit b69dde8e68
2 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ var (
)
func writeHeader(w http.ResponseWriter, code int, contentType string) {
w.Header().Set("Content-Type", contentType)
w.Header().Set("Content-Type", contentType+"; charset=utf-8")
w.WriteHeader(code)
}