elasticsearch-transport 7.16.0 → 7.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86cb8f5de5ca5fc4270376d791ea8bd03252e5bbed8494d232da2eea8512434a
4
- data.tar.gz: 27a6b7bfeea33bfa6e56ddd4a01109a1864a48685b54558707fe9af15ae73948
3
+ metadata.gz: 724acc75e16dc6f7fb93caa954c60cad405aeefb61c035f9335b857a232778fe
4
+ data.tar.gz: 4e24813185e7267a116c62614cc47599e2e68fb3398fd533a951b71cbc7dcf12
5
5
  SHA512:
6
- metadata.gz: d2c129c4eeeb76a83d3fea12764ec135ad768920cd20c7c447a768708ab324db32482bdf616197e0674fe72a62ec74422b35774117a2d22cd0de8cc1520df20d
7
- data.tar.gz: 586f14ab09c77a7a257667131d692dfd056e06ea66ccd3f53194985113043dec32e0fab5cf7fb3ed3d1a84036df02127df051c589ca137c6412ea8456a238a68
6
+ metadata.gz: 0465a56cc7a0fc805a3ccfbe5cfa00c5b8fd64dbb3e76551446f668f630aff9f3a80aa7ab73293d763e2f00bfff673e20e8b8a22280c012a01211d0b8e87a283
7
+ data.tar.gz: 157f28790dcc092070c01345c512eba951189c9dff341e8acbd7b8d48ec64d3fc6909eb63119b57054b36131bf5cfd0858550c870d0827cbe35859db943adeca
@@ -208,10 +208,11 @@ module Elasticsearch
208
208
 
209
209
  def set_compatibility_header
210
210
  return unless ['1', 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING'])
211
+ return if instance_variable_get('@options').dig(:transport_options, :headers, 'Accept')
211
212
 
212
213
  add_header(
213
214
  {
214
- 'Accept' => 'application/vnd.elasticsearch+json;compatible-with=7',
215
+ 'Accept' => 'application/vnd.elasticsearch+json; compatible-with=7',
215
216
  'Content-Type' => 'application/vnd.elasticsearch+json; compatible-with=7'
216
217
  }
217
218
  )
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Transport
20
- VERSION = '7.16.0'.freeze
20
+ VERSION = '7.16.1'.freeze
21
21
  end
22
22
  end
@@ -1432,10 +1432,7 @@ describe Elasticsearch::Transport::Client do
1432
1432
  headers = client.transport.connections.first.connection.headers
1433
1433
 
1434
1434
  expect(headers['Content-Type']).to eq('application/vnd.elasticsearch+json; compatible-with=7')
1435
- expect(headers['Accept']).to eq('application/vnd.elasticsearch+json;compatible-with=7')
1436
-
1437
- response = client.perform_request('GET', '/')
1438
- expect(response.headers['content-type']).to eq('application/json; charset=UTF-8')
1435
+ expect(headers['Accept']).to eq('application/vnd.elasticsearch+json; compatible-with=7')
1439
1436
 
1440
1437
  ENV.delete('ELASTIC_CLIENT_APIVERSIONING')
1441
1438
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.16.0
4
+ version: 7.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json