PS3 DLNA fix

This commit is contained in:
fzetterlund 2014-05-12 18:47:22 +02:00
parent baf5cf2544
commit 307be007ba

View File

@ -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<KeyValuePair<string, string>> HandleGetSystemUpdateID()
{
return new Headers { { "Id", _systemUpdateId.ToString(_usCulture) } };
var headers = new Headers(true);
headers.Add("Id", _systemUpdateId.ToString(_usCulture));
return headers;
}
private IEnumerable<KeyValuePair<string, string>> HandleXGetFeatureList()