Skip to content

Commit

Permalink
Update Proxy-Support check to be case insensitive (#79620)
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

Co-authored-by: Christopher Wood <chris@thetoxiczone.com>
  • Loading branch information
github-actions[bot] and ChrisFWood committed Jan 5, 2023
1 parent 28110f4 commit 756342b
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 756342b

Please sign in to comment.