So we have an unfortunate (somewhat crippling) constraint with sinatra in that EPEL6 ships sinatra 1.0, which doesn't contain the preferred_type method :)
(we have a monkey patch in lib/sinatra-patch.rb that adds `accept?` to Request for pre-1.3.0)