Header names should be compared binary but not linguistic.
authorxplicit <svg@ngs.ru>
Tue, 10 Dec 2013 05:02:09 +0000 (12:02 +0700)
committerxplicit <svg@ngs.ru>
Tue, 10 Dec 2013 05:02:09 +0000 (12:02 +0700)
commit583e8e07f660280b76456365ebfc04346dcd35e6
treee287412aee94f8ff1f89546318ce97d4795ca515
parente652c6d7f2dc3cc4e76d59725bce05f1d2103eff
Header names should be compared binary but not linguistic.
Moreover according to RFC2616 header names are subset of ASCII chars [0-127],
so culture-aware comparison is useless and eats too many processor time
(according to my benchmarks get an item from Hashtable with OrdinalIgnoreCase
comparers more than 20x times faster compared to Hashtable with InvariantCultureIgnoreCase
comparer)
mcs/class/System.Web/System.Web/HttpHeaderCollection.cs
mcs/class/System.Web/System.Web/HttpResponse.cs