Use ResponseHeadersRead option in GetAsync to fix download progress updates

This commit is contained in:
Stone_Red
2026-02-23 00:06:00 +01:00
parent 9dda406921
commit 9881ce4c10
+1 -1
View File
@@ -329,7 +329,7 @@ namespace AlwaysUpToDate
TriggerProgressChanged(UpdateStep.Downloading, null, 0);
using HttpResponseMessage response = await httpClient.GetAsync(updateUrl);
using HttpResponseMessage response = await httpClient.GetAsync(updateUrl, HttpCompletionOption.ResponseHeadersRead);
_ = response.EnsureSuccessStatusCode();
using Stream contentStream = await response.Content.ReadAsStreamAsync();