Skip to content

Commit edfa7f2

Browse files
committed
Fix Skipped handling
1 parent cc163e1 commit edfa7f2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/ModelContextProtocol.AspNetCore/Authentication/McpAuthenticationHandler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public async Task<bool> HandleRequestAsync()
4343
return false;
4444
}
4545

46-
await HandleResourceMetadataRequestAsync();
47-
return true;
46+
return await HandleResourceMetadataRequestAsync();
4847
}
4948

5049
/// <summary>

tests/ModelContextProtocol.AspNetCore.Tests/AuthEventTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public async Task ResourceMetadataEndpoint_HandlesResponse_WhenHandleResponseCal
325325
// Since HandleResponse() was called, the handler should have taken responsibility
326326
// for generating the response, which in this case means an empty response
327327
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
328-
328+
329329
// The response should be empty since the event handler called HandleResponse()
330330
// but didn't write any content to the response
331331
var content = await response.Content.ReadAsStringAsync(TestContext.Current.CancellationToken);

0 commit comments

Comments
 (0)