Missing media type in serveContent

This commit is contained in:
Corentin Mors
2022-06-10 09:59:48 +02:00
parent 889c2f33e7
commit 92642a2804
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
build

View File

@@ -198,6 +198,7 @@ func serveContent(w http.ResponseWriter, r *http.Request, tv *soapcalls.TVPayloa
if isMedia {
w.Header()["transferMode.dlna.org"] = []string{"Streaming"}
w.Header()["realTimeInfo.dlna.org"] = []string{"DLNA.ORG_TLAG=*"}
w.Header()["content-type"] = []string{mediaType}
}
switch f := mf.(type) {