aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-12-08 08:28:19 -0700
committercrobibero <cody@robibe.ro>2020-12-08 08:28:19 -0700
commite62124440539e814bb5036ffd646081528f1ca09 (patch)
tree7b9f98129068d1d3c4328325945d9475012b03af /Emby.Server.Implementations/Updates
parent80ff564143b0745cba4b01b5378df6415f4072af (diff)
Add missing EnsureSuccessStatusCode
Diffstat (limited to 'Emby.Server.Implementations/Updates')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index ef346dd5d..ff32d9a7e 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -407,6 +407,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