lib/lhc/format.rb
# frozen_string_literal: true class LHC::Format private def no_content_type_header!(options) return if (options[:headers].keys & [:'Content-Type', 'Content-Type']).blank? raise 'Content-Type header is not allowed for formatted requests!\nSee https://github.com/local-ch/lhc#formats for more information.' end def no_accept_header!(options) return if (options[:headers].keys & [:Accept, 'Accept']).blank? raise 'Accept header is not allowed for formatted requests!\nSee https://github.com/local-ch/lhc#formats for more information.' end end