Skip to content

Commit f9b3489

Browse files
authored
Compatibility with Samsung Frame TVs (#110)
1 parent 977b7c2 commit f9b3489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dlna/dms/dms.go

+2
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ func (me *Server) serviceControlHandler(w http.ResponseWriter, r *http.Request)
592592
return marshalSOAPResponse(soapAction, respArgs), 200
593593
}()
594594
bodyStr := fmt.Sprintf(`<?xml version="1.0" encoding="utf-8" standalone="yes"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>%s</s:Body></s:Envelope>`, soapRespXML)
595+
// Compatibility with Samsung Frame TV's - they don't display an empty content directory without this hack:
596+
bodyStr = strings.Replace(bodyStr, "&#34;", `"`, -1)
595597
w.WriteHeader(code)
596598
if _, err := w.Write([]byte(bodyStr)); err != nil {
597599
log.Print(err)

0 commit comments

Comments
 (0)