From edfcb9526b1a4377a8c2e0eb77bc24b89405be74 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 19 Feb 2023 22:26:25 +0400 Subject: [PATCH] Fixed MIME type to text/html. --- internal/http/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 89ed3c5..5fecf1b 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -101,7 +101,7 @@ func (h *Handlers) Playlist(w http.ResponseWriter, _ *http.Request) { } func (h *Handlers) Filelist(w http.ResponseWriter, _ *http.Request) { - w.Header().Add("Content-Type", "plain/html") + w.Header().Add("Content-Type", "text/html") data, _ := os.ReadFile(h.conf.FilelistPath) w.Write(data) }