Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit de30c5e

Browse files
committed
Update
1 parent 1a7279f commit de30c5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Microsoft.AspNetCore.Http.Abstractions/Internal/ParsingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private static IEnumerable<string> GetHeaderSplitImplementation(StringValues val
2626
{
2727
foreach (var segment in new HeaderSegmentCollection(values))
2828
{
29-
if (segment.Data.HasValue && !string.IsNullOrWhiteSpace(segment.Data.Value))
29+
if (segment.Data.HasValue && !StringSegment.IsNullOrEmpty(segment.Data))
3030
{
3131
yield return DeQuote(segment.Data.Value);
3232
}

test/Microsoft.AspNetCore.Http.Tests/HeaderDictionaryTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public class HeaderDictionaryTests
1616
new[] { "Value1", "Value2", "Value3", "Value4" },
1717
new[] { "Value1", "", "Value3", "Value4" },
1818
new[] { "Value1", "", "", "Value4" },
19-
new[] { "Value1", "", " ", "Value4" },
19+
new[] { "Value1", "", null, "Value4" },
2020
new[] { "", "", "", "" },
21-
new[] { "", " ", "", " " }
21+
new[] { "", null, "", null },
2222
};
2323

2424
[Fact]

0 commit comments

Comments
 (0)