Logical AND would never be true; broke into OR statement

This commit is contained in:
David Haney 2015-02-10 17:41:06 -05:00
parent 6224268953
commit 9e7fbde9f1
1 changed files with 1 additions and 1 deletions

View File

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