class Sinatra::Request

def accept?(type)

def accept?(type)
  preferred_type(type).to_s.include?(type)
end