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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 724acc75e16dc6f7fb93caa954c60cad405aeefb61c035f9335b857a232778fe
|
4
|
+
data.tar.gz: 4e24813185e7267a116c62614cc47599e2e68fb3398fd533a951b71cbc7dcf12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
)
|
@@ -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.
|
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-
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|