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

Commit

Permalink
Ignore empty header values #722
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed May 17, 2017
1 parent dfd938e commit 7bb3170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private static IEnumerable<string> GetHeaderSplitImplementation(StringValues val
{
foreach (var segment in new HeaderSegmentCollection(values))
{
if (segment.Data.HasValue)
if (segment.Data.HasValue && !string.IsNullOrWhiteSpace(segment.Data.Value))
{
yield return DeQuote(segment.Data.Value);
}
Expand Down

0 comments on commit 7bb3170

Please sign in to comment.