Skip to content

Commit b3b8168

Browse files
committed
Update AuthorizationHelpers.cs
1 parent 58a7a3d commit b3b8168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ModelContextProtocol/Authentication/AuthorizationHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public async Task<ProtectedResourceMetadata> ExtractProtectedResourceMetadata(
9696
}
9797

9898
// Extract the WWW-Authenticate header
99-
if (!response.Headers.WwwAuthenticate.Any())
99+
if (response.Headers.WwwAuthenticate.Count == 0)
100100
{
101101
throw new InvalidOperationException("The 401 response does not contain a WWW-Authenticate header");
102102
}

0 commit comments

Comments
 (0)