Fixed MIME type to text/html.
This commit is contained in:
parent
0339ce27f6
commit
edfcb9526b
@ -101,7 +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")
|
w.Header().Add("Content-Type", "text/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