Merge pull request #10022 from cvium/fix_dlna_sendrequest

This commit is contained in:
Bond-009 2023-07-20 18:10:05 +02:00 committed by GitHub
commit bdaf0b4afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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