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

- old
+ new

@@ -179,9 +179,12 @@ # 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