Skip to content

Commit 5c94158

Browse files
committed
Update AuthorizationDelegatingHandler.cs
1 parent 22962cf commit 5c94158

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ModelContextProtocol/Authentication/AuthorizationDelegatingHandler.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ private static HashSet<string> ExtractServerSupportedSchemes(HttpResponseMessage
160160
// Extract the scheme from the WWW-Authenticate header
161161
// Format is typically: "Scheme param1=value1, param2=value2"
162162
string scheme = authHeader.Split(SchemeSplitDelimiters, StringSplitOptions.RemoveEmptyEntries)[0];
163-
if (!string.IsNullOrEmpty(scheme))
164-
{
165-
serverSchemes.Add(scheme);
166-
}
163+
serverSchemes.Add(scheme);
167164
}
168165
}
169166

0 commit comments

Comments
 (0)