Sinatra should honor Accept header weights and wildcards #230

rkh opened this Issue Mar 25, 2011 · 1 comment


None yet

1 participant

rkh commented Mar 25, 2011

No description provided.

rkh commented Mar 25, 2011

Improve handling of Accept header:

  • allow wild cards
  • respect preferences
  • treat both text/xml and application/xml as xml
  • treat both text/javascript and application/javascript as js

This impacts mainly the provides condition, but should improve the behavior
of any code using Request#accept and or Request#preferred_type.

Tests included.
Closed by 9808369.

@rkh rkh closed this Mar 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment