From 307be007ba42d9be096733cb49c124744fac011b Mon Sep 17 00:00:00 2001 From: fzetterlund Date: Mon, 12 May 2014 18:47:22 +0200 Subject: [PATCH] PS3 DLNA fix --- MediaBrowser.Dlna/Server/ControlHandler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Dlna/Server/ControlHandler.cs b/MediaBrowser.Dlna/Server/ControlHandler.cs index 66858e28ef..a3eb7f0552 100644 --- a/MediaBrowser.Dlna/Server/ControlHandler.cs +++ b/MediaBrowser.Dlna/Server/ControlHandler.cs @@ -133,7 +133,7 @@ namespace MediaBrowser.Dlna.Server throw new ResourceNotFoundException("Unexpected control request name: " + method.LocalName); var env = new XmlDocument(); - env.AppendChild(env.CreateXmlDeclaration("1.0", "utf-8", "yes")); + env.AppendChild(env.CreateXmlDeclaration("1.0", "utf-8", string.Empty)); var envelope = env.CreateElement("SOAP-ENV", "Envelope", NS_SOAPENV); env.AppendChild(envelope); envelope.SetAttribute("encodingStyle", NS_SOAPENV, "http://schemas.xmlsoap.org/soap/encoding/"); @@ -222,7 +222,9 @@ namespace MediaBrowser.Dlna.Server private IEnumerable> HandleGetSystemUpdateID() { - return new Headers { { "Id", _systemUpdateId.ToString(_usCulture) } }; + var headers = new Headers(true); + headers.Add("Id", _systemUpdateId.ToString(_usCulture)); + return headers; } private IEnumerable> HandleXGetFeatureList()