Skip to content

Commit

Permalink
Remove hard coded user-agent From AzureDevOpsEndpoint (#1785)
Browse files Browse the repository at this point in the history
For some reason, we have the User Agent hard coded on
`AzureDevOpsEndpoint`. No idea why, but it looks like the version that's
coded is no longer supported.

This comments out that line to hopefully resolve the issue some users
are facing of `BrowserNotSupportedException`.


#1783

This closes #1784 1784
  • Loading branch information
MrHinsh authored Dec 11, 2023
1 parent 191a859 commit 8ff0f8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ private HttpClient CreateHttpClientWithHeaders(string url, string versionParamet
};
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", Options.AccessToken))));
client.DefaultRequestHeaders.Add("Accept", $"application/json; {versionParameter}");
client.DefaultRequestHeaders.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");

//client.DefaultRequestHeaders.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)"); #1784
return client;
}

Expand Down

0 comments on commit 8ff0f8d

Please sign in to comment.