Skip to content

Commit

Permalink
Manually handle HTTP redirects and retain headers
Browse files Browse the repository at this point in the history
  • Loading branch information
PFarqMS authored Jan 23, 2024
1 parent 2d4a257 commit b234ab2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b234ab2

Please sign in to comment.