spec/elasticsearch/transport/client_spec.rb in elasticsearch-transport-7.16.0 vs spec/elasticsearch/transport/client_spec.rb in elasticsearch-transport-7.16.1
- old
+ new
@@ -1430,13 +1430,10 @@
ENV['ELASTIC_CLIENT_APIVERSIONING'] = 'true'
client = described_class.new(host: hosts)
headers = client.transport.connections.first.connection.headers
expect(headers['Content-Type']).to eq('application/vnd.elasticsearch+json; compatible-with=7')
- expect(headers['Accept']).to eq('application/vnd.elasticsearch+json;compatible-with=7')
-
- response = client.perform_request('GET', '/')
- expect(response.headers['content-type']).to eq('application/json; charset=UTF-8')
+ expect(headers['Accept']).to eq('application/vnd.elasticsearch+json; compatible-with=7')
ENV.delete('ELASTIC_CLIENT_APIVERSIONING')
end
it 'does not use API compatibility headers' do