lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-4.0.1 vs lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-4.0.2

- old
+ new

@@ -48,19 +48,20 @@ {'Content-Encoding' => 'gzip'} else {} end headers = { 'Content-Type' => @content_type.to_s, }.merge(gzip_headers) + ssl_options = { verify: @ssl_verify, ca_file: @ca_file}.merge(@ssl_version_options) transport = Elasticsearch::Transport::Transport::HTTP::Faraday.new(connection_options.merge( options: { reload_connections: @reload_connections, reload_on_failure: @reload_on_failure, resurrect_after: @resurrect_after, logger: @transport_logger, transport_options: { headers: headers, request: { timeout: @request_timeout }, - ssl: { verify: @ssl_verify, ca_file: @ca_file, version: @ssl_version } + ssl: ssl_options, }, http: { user: @user, password: @password },