Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
Filip1x9 committed May 21, 2024
1 parent 1cc5474 commit 7660872
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/FactSet.SDK.Utils/Authentication/ConfidentialClient.cs
Original file line number Diff line number Diff line change
@@ -123,9 +123,9 @@ private HttpClient InitClient(HttpClient httpClient)
{
return new HttpClient();
}

httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", Constants.USER_AGENT);

return httpClient;
}

2 changes: 1 addition & 1 deletion src/FactSet.SDK.Utils/Authentication/Constants.cs
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ public static class Constants
#pragma warning disable S1075 // URIs should not be hardcoded
public static readonly string FACTSET_WELL_KNOWN_URI = "https://auth.factset.com/.well-known/openid-configuration";
#pragma warning restore S1075 // URIs should not be hardcoded

private static String GetOSType()
{
if (RuntimeInformation.OSDescription.StartsWith("Microsoft Windows"))
Original file line number Diff line number Diff line change
@@ -243,7 +243,7 @@ public async Task HttpClient_UserAgent_ContainsCorrectAgent()
Path.Join(_resourcesPath, "validConfigGeneratedSample.txt"),
mockClient
);

Assert.That(_capturedRequest.Headers.UserAgent.ToString(), Is.EqualTo(Constants.USER_AGENT));
}

0 comments on commit 7660872

Please sign in to comment.