Compress more http content-types.
Also, some minor refactoring
This commit is contained in:
@@ -73,6 +73,7 @@ func serveIndex(ds model.DataStore, fs fs.FS) http.HandlerFunc {
|
||||
"AppConfig": string(j),
|
||||
"Version": version,
|
||||
}
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
err = t.Execute(w, data)
|
||||
if err != nil {
|
||||
log.Error(r, "Could not execute `index.html` template", err)
|
||||
|
||||
Reference in New Issue
Block a user