# File lib/webmock/util/query_mapper.rb, line 79 def collect_query_hash(query_array, empty_accumulator, options) query_array.compact.inject(empty_accumulator.dup) do |accumulator, (key, value)| value = if value.nil? nil else ::Addressable::URI.unencode_component(value.gsub(/\+/, ' ')) end key = Addressable::URI.unencode_component(key) key = key.dup.force_encoding(Encoding::ASCII_8BIT) if key.respond_to?(:force_encoding) self.__send__("fill_accumulator_for_#{options[:notation]}", accumulator, key, value) accumulator end end