Missing media type in serveContent
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build
|
@@ -198,6 +198,7 @@ func serveContent(w http.ResponseWriter, r *http.Request, tv *soapcalls.TVPayloa
|
|||||||
if isMedia {
|
if isMedia {
|
||||||
w.Header()["transferMode.dlna.org"] = []string{"Streaming"}
|
w.Header()["transferMode.dlna.org"] = []string{"Streaming"}
|
||||||
w.Header()["realTimeInfo.dlna.org"] = []string{"DLNA.ORG_TLAG=*"}
|
w.Header()["realTimeInfo.dlna.org"] = []string{"DLNA.ORG_TLAG=*"}
|
||||||
|
w.Header()["content-type"] = []string{mediaType}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch f := mf.(type) {
|
switch f := mf.(type) {
|
||||||
|
Reference in New Issue
Block a user