mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 08:23:54 +01:00
Add HttpCompletionOption.ResponseHeadersRead to the buffering option to avoid potentially having 2 copies in memory
This commit is contained in:
parent
886c88576c
commit
dadfc09c01
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ namespace Emby.Server.Implementations.HttpClientManager
|
|||
};
|
||||
}
|
||||
|
||||
using (var response = await client.SendAsync(httpWebRequest, options.CancellationToken).ConfigureAwait(false))
|
||||
using (var response = await client.SendAsync(httpWebRequest, HttpCompletionOption.ResponseHeadersRead, options.CancellationToken).ConfigureAwait(false))
|
||||
{
|
||||
await EnsureSuccessStatusCode(response, options).ConfigureAwait(false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue