We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a7a3d commit b3b8168Copy full SHA for b3b8168
1 file changed
src/ModelContextProtocol/Authentication/AuthorizationHelpers.cs
@@ -96,7 +96,7 @@ public async Task<ProtectedResourceMetadata> ExtractProtectedResourceMetadata(
96
}
97
98
// Extract the WWW-Authenticate header
99
- if (!response.Headers.WwwAuthenticate.Any())
+ if (response.Headers.WwwAuthenticate.Count == 0)
100
{
101
throw new InvalidOperationException("The 401 response does not contain a WWW-Authenticate header");
102
0 commit comments