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);