Skip to content

Commit 756342b

Browse files
Update Proxy-Support check to be case insensitive (#79620)
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 Co-authored-by: Christopher Wood <chris@thetoxiczone.com>
1 parent 28110f4 commit 756342b

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)