FIX html encoding
This commit is contained in:
parent
3bb3c9856e
commit
94b90af504
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue