module ActionDispatch::Http::MimeNegotiation
def valid_accept_header
def valid_accept_header (xhr? && (accept.present? || content_mime_type)) || (accept.present? && !accept.match?(BROWSER_LIKE_ACCEPTS)) end
def valid_accept_header (xhr? && (accept.present? || content_mime_type)) || (accept.present? && !accept.match?(BROWSER_LIKE_ACCEPTS)) end