From 9881ce4c1051282c7fae76d27afd878c129c4788 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Mon, 23 Feb 2026 00:06:00 +0100 Subject: [PATCH] Use ResponseHeadersRead option in GetAsync to fix download progress updates --- AlwaysUpToDate/DownloadManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AlwaysUpToDate/DownloadManager.cs b/AlwaysUpToDate/DownloadManager.cs index dbefa5b..54a1f6d 100644 --- a/AlwaysUpToDate/DownloadManager.cs +++ b/AlwaysUpToDate/DownloadManager.cs @@ -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();