Merge pull request #4737 from crobibero/missing-ensure-success

This commit is contained in:
Claus Vium
2020-12-11 09:53:43 +01:00
committed by GitHub
3 changed files with 21 additions and 17 deletions

View File

@@ -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