[WCF] fix another use of XmlBinaryWriter that closes stream and accesses it later.
[mono.git] / mcs / class / System.ServiceModel.Web / System.ServiceModel.Syndication / XmlSyndicationContent.cs
index bc268c4c669fc2c7e28eccf0d42f4853d34badb6..b380fd834ad074115d7a09271b23ccbb492db52c 100644 (file)
@@ -95,7 +95,7 @@ namespace System.ServiceModel.Syndication
                                if (!(r is XmlDictionaryReader))
                                        r = XmlDictionaryReader.CreateDictionaryReader (r);
                                var ms = new MemoryStream ();
-                               var xw = XmlDictionaryWriter.CreateBinaryWriter (ms);
+                               var xw = XmlDictionaryWriter.CreateBinaryWriter (ms, null, null, false);
                                xw.WriteStartElement ("content", Namespaces.Atom10);
                                xw.WriteAttributeString ("type", "text/xml");
                                while (!r.EOF)