lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-1.0.7 vs lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-1.0.9
- old
+ new
@@ -46,10 +46,9 @@
:connections => hosts.map { |host|
host[:protocol] = host[:scheme] || DEFAULT_PROTOCOL
host[:port] ||= DEFAULT_PORT
client = ::Curl::Easy.new
- client.resolve_mode = :ipv4
client.headers = {'User-Agent' => "Curb #{Curl::CURB_VERSION}"}
client.url = __full_url(host)
if host[:user]
client.http_auth_types = host[:auth_type] || :basic