feat: support for IE11 browser

This commit is contained in:
Ramires Viana
2021-04-15 12:28:19 +00:00
parent 20ebbf6611
commit 7ec24d9d77
7 changed files with 39 additions and 6 deletions
+2
View File
@@ -49,6 +49,8 @@ func (d *data) Check(path string) bool {
func handle(fn handleFunc, prefix string, store *storage.Storage, server *settings.Server) http.Handler {
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-cache")
settings, err := store.Settings.Get()
if err != nil {
log.Fatalf("ERROR: couldn't get settings: %v\n", err)
+1 -1
View File
@@ -71,7 +71,7 @@ func handleWithStaticData(w http.ResponseWriter, _ *http.Request, d *data, fSys
}
}
b, err := json.MarshalIndent(data, "", " ")
b, err := json.Marshal(data)
if err != nil {
return http.StatusInternalServerError, err
}