#7 ✓resolved
Ryan Tomayko

[PATCH] Non-normalizing HeaderHash with case insensitive lookups

Reported by Ryan Tomayko | December 28th, 2008 @ 09:23 AM | in 0.9

Rack::Utils::HeaderHash currently normalizes header names to a naive camel-case (e.g., "content-length" -> "Content-Length", "ETag" -> "Etag", "Content-MD5" -> "Content-Md5"). There's been various discussion on why a non-normalizing but case-insensitive implementation would be preferable:

The following patch makes HeaderHash preserve the case of the header name when set but has case insensitive lookup, replace, delete, and include semantics:

http://github.com/rtomayko/rack/...

All specs pass with the exception of the ones that tested for case normalization specifically.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages