mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Compress more http content-types.
Also, some minor refactoring
This commit is contained in:
parent
472f99b2b5
commit
1b5f855bff
5 changed files with 38 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue