diff options
| author | crobibero <cody@robibe.ro> | 2020-09-01 07:51:06 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-01 07:51:06 -0600 |
| commit | 4038d15c83da055add3cc78df46969f82ee66d1b (patch) | |
| tree | 00c80a2509fc2a5fb476e170ca408763c390ddc9 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 8d592777c4585058945a9a52d159346384445892 (diff) | |
Properly migrate all HttpCompletionOption
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
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); |
