mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-28 22:55:39 -04:00
router_static.go: add charset for html content
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user