We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686d3ff commit 5cf3df7Copy full SHA for 5cf3df7
elasticsearch-api/lib/elasticsearch/api/utils.rb
@@ -182,8 +182,7 @@ def rescue_from_not_found(&block)
182
def update_ndjson_headers!(headers, client_headers)
183
current_content = client_headers.keys.find { |c| c.match?(/content-?_?type/i) } || 'content-type'
184
current_accept = client_headers.keys.find { |c| c.match?(/accept/i) } || 'accept'
185
-
186
- version = client_headers[current_content].match(/compatible-with=([8-9]{1})/)[1] || 9
+ version = client_headers[current_content].match(/compatible-with=([0-9]+)/)[1] || 9
187
188
headers.merge!(
189
{
0 commit comments