mirror of
https://github.com/Stone-Red-Code/AlwaysUpToDate.git
synced 2026-09-04 00:46:05 +02:00
Use ResponseHeadersRead option in GetAsync to fix download progress updates
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user