@ohadlevy: Sinatra::Request#preferred_type was introduced in Sinatra 1.2. I guess that should be the minimal version then?