mjackson / rack-accept

HTTP Accept* for Ruby/Rack
http://mjackson.github.com/rack-accept
47 stars 16 forks source link

Use case insensitive matching for tokens #7

Closed remi closed 12 years ago

remi commented 12 years ago

As reported by @saraogi in #6, RFC 2616 states that all tokens (languages, content types, encoding) are case-insensitive.

I included the code and some basic tests.