aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-07-20 13:36:59 +0200
committerClaus Vium <clausvium@gmail.com>2019-07-20 13:36:59 +0200
commitdadfc09c01ee34b67bfc02f655ac06e4de953805 (patch)
tree9669d63c41c5dd0a5ae1e84687d69fa94550fe0a /Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
parent886c88576c04eda76c076d056194afa9140815a7 (diff)
Add HttpCompletionOption.ResponseHeadersRead to the buffering option to avoid potentially having 2 copies in memory
Diffstat (limited to 'Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
index a4cd98b40..528053c21 100644
--- a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
@@ -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);