Added Content-Type header for filelist.
This commit is contained in:
parent
e58b44191d
commit
77183bb14e
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user