Skip to content

Commit e8c7a02

Browse files
committed
SWI-4052 set auto redirects to false
Closes #75
1 parent 34d71a7 commit e8c7a02

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)