We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22962cf commit 5c94158Copy full SHA for 5c94158
src/ModelContextProtocol/Authentication/AuthorizationDelegatingHandler.cs
@@ -160,10 +160,7 @@ private static HashSet<string> ExtractServerSupportedSchemes(HttpResponseMessage
160
// Extract the scheme from the WWW-Authenticate header
161
// Format is typically: "Scheme param1=value1, param2=value2"
162
string scheme = authHeader.Split(SchemeSplitDelimiters, StringSplitOptions.RemoveEmptyEntries)[0];
163
- if (!string.IsNullOrEmpty(scheme))
164
- {
165
- serverSchemes.Add(scheme);
166
- }
+ serverSchemes.Add(scheme);
167
}
168
169
0 commit comments