Skip to content

Commit

Permalink
Fix code for .NET 8 new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard committed Jul 23, 2024
1 parent 629779b commit 84418fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dotnet/APIView/APIViewWeb/Account/TestAuthHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace APIViewWeb.Account
{
public class TestAuthHandler : AuthenticationHandler<AuthenticationSchemeOptions>
{
public TestAuthHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock) { }
public TestAuthHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder) { }

protected override Task<AuthenticateResult> HandleAuthenticateAsync()
{
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet/APIView/APIViewWeb/Extensions/HttpExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public static void AddPaginationHeader(this HttpResponse response, PaginationHea
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
};
response.Headers.Add("Pagination", JsonSerializer.Serialize(header, options));
response.Headers.Add("Access-Control-Expose-Headers", "Pagination");
response.Headers.Append("Pagination", JsonSerializer.Serialize(header, options));
response.Headers.Append("Access-Control-Expose-Headers", "Pagination");
}
}
}

0 comments on commit 84418fe

Please sign in to comment.