diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-11 09:53:43 +0100 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-12-13 20:34:32 -0500 |
| commit | c1dd8f2050efa1617210124c4ccca7c5b9a13179 (patch) | |
| tree | 67fb8050e63b6e97d4eb56077e99cffd51237ece /Emby.Server.Implementations/Updates/InstallationManager.cs | |
| parent | 853c328763e19c75eec19347117f43db502ce724 (diff) | |
Merge pull request #4737 from crobibero/missing-ensure-success
(cherry picked from commit f3228661279cbb6bc7251c8f737680dff1336002)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index ce9ffe42b1..ae2fa3ce19 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -422,6 +422,7 @@ namespace Emby.Server.Implementations.Updates using var response = await _httpClientFactory.CreateClient(NamedClient.Default) .GetAsync(new Uri(package.SourceUrl), cancellationToken).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); await using var stream = await response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); // CA5351: Do Not Use Broken Cryptographic Algorithms |
