FIX html encoding

This commit is contained in:
boyska 2017-12-08 20:14:34 +01:00
parent 3bb3c9856e
commit 94b90af504

View file

@ -46,7 +46,7 @@ func (mu *MegaUploader) home(w http.ResponseWriter, r *http.Request) {
}
user, _ := getUser(r)
shares := mu.Conf.GetAuthShares(user)
w.Header().Set("Content-Type", "text/html")
w.Header().Set("Content-Type", "text/html; charset=utf-8")
tmpl.Execute(w, map[string]interface{}{
"Prefix": mu.Conf.Global.RoutePrefix,
"Shares": shares,
@ -72,7 +72,7 @@ func (mu *MegaUploader) uploadUI(w http.ResponseWriter, r *http.Request) {
if err != nil {
viewurl = url.URL{}
}
w.Header().Set("Content-Type", "text/html")
w.Header().Set("Content-Type", "text/html; charset=utf-8")
tmpl.Execute(w, map[string]interface{}{
"Prefix": mu.Conf.Global.RoutePrefix,
"Share": share,