Skip to content

Commit 721e9fc

Browse files
authored
Update Proxy-Support check to be case insensitive (#61446)
RFC4559 does not specify that the Proxy-Support header value used to determine if the proxy server will honour client server authentication integrity is case sensitive. Updating the check to be case insensitive to prevent failures when value is supplied using differences in case. Fix #61414
1 parent 00e9312 commit 721e9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static bool ProxySupportsConnectionAuth(HttpResponseMessage response)
6161

6262
foreach (string v in values)
6363
{
64-
if (v == "Session-Based-Authentication")
64+
if (v.Equals("Session-Based-Authentication", StringComparison.OrdinalIgnoreCase))
6565
{
6666
return true;
6767
}

0 commit comments

Comments
 (0)