aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-09-03 07:20:33 -0600
committercrobibero <cody@robibe.ro>2020-09-03 07:20:33 -0600
commitd8a0edc511f9a0a01211c11d4ad32bf0fd154de1 (patch)
tree8c55b17fd8593ddb5984cb3217ee182178279cc9 /Emby.Server.Implementations/ApplicationHost.cs
parent85844a84b68f7da07695c4e3fa4d187acc559797 (diff)
Revert "Remove ResponseHeadersRead where applicable"
This reverts commit 85844a84b68f7da07695c4e3fa4d187acc559797.
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index fbf4aef8b..006060079 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1299,7 +1299,7 @@ namespace Emby.Server.Implementations
{
using var request = new HttpRequestMessage(HttpMethod.Post, apiUrl);
using var response = await _httpClientFactory.CreateClient(NamedClient.Default)
- .SendAsync(request, cancellationToken).ConfigureAwait(false);
+ .SendAsync(request, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
await using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
var result = await System.Text.Json.JsonSerializer.DeserializeAsync<string>(stream, JsonDefaults.GetOptions(), cancellationToken).ConfigureAwait(false);