From b234ab2e5b7489fa8eab8dd10c94d1a418d1f6cc Mon Sep 17 00:00:00 2001 From: Philip Niemeyer-Farquharson <21379080+PFarqMS@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:14:29 -0500 Subject: [PATCH] Manually handle HTTP redirects and retain headers --- XMAT/Engines/WebServiceProxy/Logic/Proxy/WebServiceProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMAT/Engines/WebServiceProxy/Logic/Proxy/WebServiceProxy.cs b/XMAT/Engines/WebServiceProxy/Logic/Proxy/WebServiceProxy.cs index da9da65..3109db7 100644 --- a/XMAT/Engines/WebServiceProxy/Logic/Proxy/WebServiceProxy.cs +++ b/XMAT/Engines/WebServiceProxy/Logic/Proxy/WebServiceProxy.cs @@ -47,7 +47,7 @@ internal class WebServiceProxy : IWebServiceProxy private CancellationTokenSource _cancellationToken = null; private int _port = -1; private readonly AutoResetEvent _exitEvent = new(false); - private readonly HttpClient _httpClient = new(new HttpClientHandler() { UseProxy = false, Proxy = null }); + private readonly HttpClient _httpClient = new(new HttpClientHandler() { UseProxy = false, Proxy = null, AllowAutoRedirect = false }); private Thread _listenThread; // these need to be thread-safe