File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
api-spec-testing/test_file
elasticsearch-transport/lib/elasticsearch/transport Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ def execute(client, test = nil)
7373 if headers [ :Authorization ] == 'Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA=='
7474 headers . delete ( :Authorization )
7575 end
76+ # Stringify keys:
77+ headers = headers . transform_keys ( &:to_s )
7678 if ENV [ 'QUIET' ] == 'true'
7779 # todo: create a method on Elasticsearch::Client that can clone the client with new options
7880 Elasticsearch ::Client . new (
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ def set_api_key
208208
209209 def set_compatibility_header
210210 return unless [ '1' , 'true' ] . include? ( ENV [ 'ELASTIC_CLIENT_APIVERSIONING' ] )
211+ return if instance_variable_get ( '@options' ) . dig ( :transport_options , :headers , 'Accept' )
211212
212213 add_header (
213214 {
You can’t perform that action at this time.
0 commit comments