From 7ab7565d161b27dadf98c62d11b29f91d9dd21e7 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Fri, 20 May 2022 16:19:42 -0600 Subject: [PATCH] Fix the manual nexus downloader --- Wabbajack.App.Wpf/View Models/BrowserWindowViewModel.cs | 4 ++-- Wabbajack.Downloaders.Nexus/NexusDownloader.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Wabbajack.App.Wpf/View Models/BrowserWindowViewModel.cs b/Wabbajack.App.Wpf/View Models/BrowserWindowViewModel.cs index 5bfe7c64..b64bba61 100644 --- a/Wabbajack.App.Wpf/View Models/BrowserWindowViewModel.cs +++ b/Wabbajack.App.Wpf/View Models/BrowserWindowViewModel.cs @@ -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); diff --git a/Wabbajack.Downloaders.Nexus/NexusDownloader.cs b/Wabbajack.Downloaders.Nexus/NexusDownloader.cs index 37d460dd..7eca13f2 100644 --- a/Wabbajack.Downloaders.Nexus/NexusDownloader.cs +++ b/Wabbajack.Downloaders.Nexus/NexusDownloader.cs @@ -166,7 +166,7 @@ public class NexusDownloader : ADownloader, 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);