浏览代码

Test fix of login.system mime type

tobychui 3 年之前
父节点
当前提交
1dd52b4161
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      main.router.go

+ 1 - 0
main.router.go

@@ -45,6 +45,7 @@ func mrouter(h http.Handler) http.Handler {
 			if err != nil {
 				panic("Error. Unable to parse login page. Is web directory data exists?")
 			}
+			w.Header().Add("Content-Type", "text/html; charset=UTF-8")
 			w.Write([]byte(parsedPage))
 		} else if r.URL.Path == "/reset.system" && authAgent.GetUserCounts() > 0 {
 			//Password restart page. Allow access only when user number > 0