Skip to content

Commit 84418fe

Browse files
committed
Fix code for .NET 8 new warnings
1 parent 629779b commit 84418fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dotnet/APIView/APIViewWeb/Account/TestAuthHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace APIViewWeb.Account
1111
{
1212
public class TestAuthHandler : AuthenticationHandler<AuthenticationSchemeOptions>
1313
{
14-
public TestAuthHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock) { }
14+
public TestAuthHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder) { }
1515

1616
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
1717
{

src/dotnet/APIView/APIViewWeb/Extensions/HttpExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public static void AddPaginationHeader(this HttpResponse response, PaginationHea
1313
{
1414
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
1515
};
16-
response.Headers.Add("Pagination", JsonSerializer.Serialize(header, options));
17-
response.Headers.Add("Access-Control-Expose-Headers", "Pagination");
16+
response.Headers.Append("Pagination", JsonSerializer.Serialize(header, options));
17+
response.Headers.Append("Access-Control-Expose-Headers", "Pagination");
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)