Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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