Skip to content

Commit 8f926ba

Browse files
committed
Redundant call
1 parent 3852be9 commit 8f926ba

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ModelContextProtocol.AspNetCore/Authentication/McpAuthenticationHandler.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
131131
/// <inheritdoc />
132132
protected override Task HandleChallengeAsync(AuthenticationProperties properties)
133133
{
134-
// Set the response status code
135-
Response.StatusCode = StatusCodes.Status401Unauthorized;
136-
137134
// Get the absolute URI for the resource metadata
138135
string rawPrmDocumentUri = GetAbsoluteResourceMetadataUri();
139136

0 commit comments

Comments
 (0)