Răsfoiți Sursa

fix: set memorystream position after copying

cvium 1 an în urmă
părinte
comite
4b25d65c02
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      Emby.Dlna/PlayTo/DlnaHttpClient.cs

+ 1 - 0
Emby.Dlna/PlayTo/DlnaHttpClient.cs

@@ -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(