Merge pull request #189 from ironyx/patch-1

Logical AND would never be true; broke into OR statement
This commit is contained in:
Eilon Lipton 2015-02-11 09:35:06 -08:00
commit dadd9cd9f3
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ namespace Microsoft.Net.Http.Headers
if (skipEmptyValues) if (skipEmptyValues)
{ {
while ((current < input.Length) && (input[current] == ',') && (input[current] == ';')) while ((current < input.Length) && ((input[current] == ',') || (input[current] == ';')))
{ {
current++; // skip delimiter. current++; // skip delimiter.
current = current + HttpRuleParser.GetWhitespaceLength(input, current); current = current + HttpRuleParser.GetWhitespaceLength(input, current);