class ActionDispatch::PermissionsPolicy::Middleware

def html_response?(headers)

def html_response?(headers)
  if content_type = headers[CONTENT_TYPE]
    /html/.match?(content_type)
  end
end