class Rack::Protection::Base

def html?(headers)

def html?(headers)
  return false unless (header = headers.detect { |k, _v| k.downcase == 'content-type' })
  options[:html_types].include? header.last[%r{^\w+/\w+}]
end