class Typhoeus::Response::Header

def set_value(key, value, hash)

Returns:
  • (void) -
def set_value(key, value, hash)
  current_value = hash[key]
  if current_value
    if current_value.is_a? Array
      current_value << value
    else
      hash[key] = [current_value, value]
    end
  else
    hash[key] = value
  end
end