diff --git a/src/OrchardCore.Modules/OrchardCore.XmlRpc/Controllers/HomeController.cs b/src/OrchardCore.Modules/OrchardCore.XmlRpc/Controllers/HomeController.cs index d69f4cf772c..587e802f0b3 100644 --- a/src/OrchardCore.Modules/OrchardCore.XmlRpc/Controllers/HomeController.cs +++ b/src/OrchardCore.Modules/OrchardCore.XmlRpc/Controllers/HomeController.cs @@ -54,7 +54,7 @@ public async Task ServiceEndpoint([ModelBinder(BinderType = typeo result.Save(w); } - var content = Encoding.UTF8.GetString(stream.GetBuffer(), 0, (int)stream.Length); + var content = Encoding.UTF8.GetString(stream.GetReadOnlySequence()); return Content(content, "text/xml"); }