lib/elasticsearch/transport/client.rb in elasticsearch-transport-5.0.5 vs lib/elasticsearch/transport/client.rb in elasticsearch-transport-6.0.0

- old
+ new

@@ -179,12 +179,9 @@ # host_parts.select { |k,v| [:scheme, :port, :user, :password].include?(k) }.each do |k,v| @arguments[:http][k] ||= v end - # Remove the trailing slash - host_parts[:path].chomp!('/') if host_parts[:path] - host_parts end result.shuffle! if options[:randomize_hosts] result