fix: set memorystream position after copying

This commit is contained in:
cvium 2023-07-19 12:12:58 +02:00
parent 5ae164c79a
commit 4b25d65c02

View File

@ -57,6 +57,7 @@ namespace Emby.Dlna.PlayTo
response.EnsureSuccessStatusCode();
await using MemoryStream ms = new MemoryStream();
await response.Content.CopyToAsync(ms, cancellationToken).ConfigureAwait(false);
ms.Position = 0;
try
{
return await XDocument.LoadAsync(