From 685f3a3a58a75c910783308ac26c8191ee7faf1b Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 20 Feb 2019 11:07:29 -0500 Subject: [PATCH] router_static.go: add charset for html content --- api/router_static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/router_static.go b/api/router_static.go index eb46e57..5cdbce0 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -116,7 +116,7 @@ func staticRouterInit(router *mux.Router) error { if path.Ext(p) != "" { contentType[p] = mime.TypeByExtension(path.Ext(p)) } else { - contentType[p] = mime.TypeByExtension("html") + contentType[p] = "text/html; charset=utf-8" } router.HandleFunc(p, func(w http.ResponseWriter, r *http.Request) {