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

Commit 7bb3170

Browse files
committed
Ignore empty header values #722
1 parent dfd938e commit 7bb3170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)
29+
if (segment.Data.HasValue && !string.IsNullOrWhiteSpace(segment.Data.Value))
3030
{
3131
yield return DeQuote(segment.Data.Value);
3232
}

0 commit comments

Comments
 (0)