Skip to content

Commit

Permalink
Update Proxy-Support check to be case insensitive (#61446)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ChrisFWood committed Nov 23, 2021
1 parent 00e9312 commit 721e9fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static bool ProxySupportsConnectionAuth(HttpResponseMessage response)

foreach (string v in values)
{
if (v == "Session-Based-Authentication")
if (v.Equals("Session-Based-Authentication", StringComparison.OrdinalIgnoreCase))
{
return true;
}
Expand Down

0 comments on commit 721e9fc

Please sign in to comment.