Skip to content

Commit

Permalink
Merge pull request #80 from Bandwidth/SWI-4052
Browse files Browse the repository at this point in the history
SWI-4052 set auto redirects to false
  • Loading branch information
ajrice6713 authored Dec 5, 2023
2 parents 34d71a7 + e8c7a02 commit 42a8642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bandwidth.Iris/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private Client(string accountId, string userName, string password, string apiEnd
private HttpClient CreateHttpClient()
{
var url = new UriBuilder(_apiEndpoint) { Path = string.Format("/{0}/", _apiVersion) };
var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = true }) { BaseAddress = url.Uri };
var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false }) { BaseAddress = url.Uri };
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Basic",
Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Format("{0}:{1}", _userName, _password))));
Expand Down

0 comments on commit 42a8642

Please sign in to comment.