mirror of
https://github.com/Stone-Red-Code/AlwaysUpToDate.git
synced 2026-09-09 07:46:08 +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);
|
TriggerProgressChanged(UpdateStep.Downloading, null, 0);
|
||||||
|
|
||||||
using HttpResponseMessage response = await httpClient.GetAsync(updateUrl);
|
using HttpResponseMessage response = await httpClient.GetAsync(updateUrl, HttpCompletionOption.ResponseHeadersRead);
|
||||||
_ = response.EnsureSuccessStatusCode();
|
_ = response.EnsureSuccessStatusCode();
|
||||||
|
|
||||||
using Stream contentStream = await response.Content.ReadAsStreamAsync();
|
using Stream contentStream = await response.Content.ReadAsStreamAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user