Closed JosephHalter closed 13 years ago
There was a bug in media_types parsing for media types including a dot. Here are examples of valid media types which were not recognized properly by rack-accept:
audio/vnd.rn-realaudio application/vnd.mozilla.xul+xml
Examples taken from http://en.wikipedia.org/wiki/Internet_media_type I had to change the regexp in parse_media_type to fix it, I've added a test for it, please merge.
Thanks for this patch!
There was a bug in media_types parsing for media types including a dot. Here are examples of valid media types which were not recognized properly by rack-accept:
audio/vnd.rn-realaudio application/vnd.mozilla.xul+xml
Examples taken from http://en.wikipedia.org/wiki/Internet_media_type I had to change the regexp in parse_media_type to fix it, I've added a test for it, please merge.