Skip to content

Commit 42a8642

Browse files
authored
Merge pull request #80 from Bandwidth/SWI-4052
SWI-4052 set auto redirects to false
2 parents 34d71a7 + e8c7a02 commit 42a8642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bandwidth.Iris/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private Client(string accountId, string userName, string password, string apiEnd
6666
private HttpClient CreateHttpClient()
6767
{
6868
var url = new UriBuilder(_apiEndpoint) { Path = string.Format("/{0}/", _apiVersion) };
69-
var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = true }) { BaseAddress = url.Uri };
69+
var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false }) { BaseAddress = url.Uri };
7070
client.DefaultRequestHeaders.Authorization =
7171
new AuthenticationHeaderValue("Basic",
7272
Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Format("{0}:{1}", _userName, _password))));

0 commit comments

Comments
 (0)