# File lib/action_dispatch/http/mime_negotiation.rb, line 100
      def valid_accept_header
        (xhr? && (accept || content_mime_type)) ||
          (accept && accept !~ BROWSER_LIKE_ACCEPTS)
      end