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