From 9e7fbde9f1a221b4764a4ac2155cd64e48d08381 Mon Sep 17 00:00:00 2001 From: David Haney Date: Tue, 10 Feb 2015 17:41:06 -0500 Subject: [PATCH] Logical AND would never be true; broke into OR statement --- src/Microsoft.Net.Http.Headers/CookieHeaderParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Net.Http.Headers/CookieHeaderParser.cs b/src/Microsoft.Net.Http.Headers/CookieHeaderParser.cs index 7c5be8753c..3c2e9635f3 100644 --- a/src/Microsoft.Net.Http.Headers/CookieHeaderParser.cs +++ b/src/Microsoft.Net.Http.Headers/CookieHeaderParser.cs @@ -91,7 +91,7 @@ namespace Microsoft.Net.Http.Headers if (skipEmptyValues) { - while ((current < input.Length) && (input[current] == ',') && (input[current] == ';')) + while ((current < input.Length) && ((input[current] == ',') || (input[current] == ';'))) { current++; // skip delimiter. current = current + HttpRuleParser.GetWhitespaceLength(input, current);