# File lib/typhoeus/remote.rb, line 104 def check_expected_headers!(response_args, options) missing_headers = {} response_args[:expected_headers].each do |key, value| if options[:headers].nil? missing_headers[key] = [value, nil] elsif ((options[:headers][key] && value != :anything) && options[:headers][key] != value) missing_headers[key] = [value, options[:headers][key]] end end unless missing_headers.empty? raise headers_error_summary(response_args, options, missing_headers, 'expected') end end