lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-2.6.1 vs lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-2.7.0

- old
+ new

@@ -52,10 +52,10 @@ reload_on_failure: @reload_on_failure, resurrect_after: @resurrect_after, retry_on_failure: 5, logger: @transport_logger, transport_options: { - headers: { 'Content-Type' => 'application/json' }, + headers: { 'Content-Type' => @content_type.to_s }, request: { timeout: @request_timeout }, ssl: { verify: @ssl_verify, ca_file: @ca_file } } }), &adapter_conf) es = Elasticsearch::Client.new transport: transport