aspnet/HttpAbstractions

RequestCookieCollection inconsistent case sensitivity

lundog opened this issue · 1 comments

When RequestCookieCollection is instantiated with a capacity it initializes its inner Store dictionary with StringComparer.OrdinalIgnoreCase:

Store = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase);

However, when instantiated via the static Parse method it initializes its inner Store dictionary without the OrdinalIgnoreCase option:

var store = new Dictionary<string, string>(cookies.Count);

Similar to #978
It seems as if the Parse method should initialize Store with OrdinalIgnoreCase to be consistent.

Agreed.