Fix the manual nexus downloader

This commit is contained in:
Timothy Baldridge 2022-05-20 16:19:42 -06:00
parent 934cdd18ce
commit 7ab7565d16
2 changed files with 3 additions and 3 deletions

View File

@ -115,9 +115,9 @@ public abstract class BrowserWindowViewModel : ViewModel
{
source.SetCanceled();
}
args.Handled = true;
args.Cancel = true;
args.Handled = true;
};
var uri = await source.Task.WaitAsync(token);

View File

@ -166,7 +166,7 @@ public class NexusDownloader : ADownloader<Nexus>, IUrlDownloader
var msg = browserState.ToHttpRequestMessage();
using var response = await _client.SendAsync(msg, token);
using var response = await _client.SendAsync(msg, HttpCompletionOption.ResponseHeadersRead, token);
if (!response.IsSuccessStatusCode)
throw new HttpRequestException(response.ReasonPhrase, null, statusCode:response.StatusCode);