1
0

Added Content-Type header for filelist.

This commit is contained in:
Alexander Andreev 2023-02-19 21:41:58 +04:00
parent e58b44191d
commit 77183bb14e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -101,6 +101,7 @@ func (h *Handlers) Playlist(w http.ResponseWriter, _ *http.Request) {
} }
func (h *Handlers) Filelist(w http.ResponseWriter, _ *http.Request) { func (h *Handlers) Filelist(w http.ResponseWriter, _ *http.Request) {
w.Header().Add("Content-Type", "plain/html")
data, _ := os.ReadFile(h.conf.FilelistPath) data, _ := os.ReadFile(h.conf.FilelistPath)
w.Write(data) w.Write(data)
} }