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)
73
73
if headers [ :Authorization ] == 'Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA=='
74
74
headers . delete ( :Authorization )
75
75
end
76
+ # Stringify keys:
77
+ headers = headers . transform_keys ( &:to_s )
76
78
if ENV [ 'QUIET' ] == 'true'
77
79
# todo: create a method on Elasticsearch::Client that can clone the client with new options
78
80
Elasticsearch ::Client . new (
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ def set_api_key
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
{
You can’t perform that action at this time.
0 commit comments