Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip1x9 committed Oct 31, 2024
1 parent 37439e3 commit 13162a6
Show file tree
Hide file tree
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
Expand Up @@ -123,9 +123,9 @@ private HttpClient InitClient(HttpClient httpClient)
{
return new HttpClient();
}

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

return httpClient;
}

Expand Down
2 changes: 1 addition & 1 deletion src/FactSet.SDK.Utils/Authentication/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 13162a6

Please sign in to comment.