Skip to content

Commit

Permalink
Updates meta header constants for backwards compatibility in Serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Jul 16, 2024
1 parent 0ae2079 commit 37b310b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elastic/transport/meta_header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def meta_header_service_version
if enterprise_search?
Elastic::ENTERPRISE_SERVICE_VERSION
elsif serverless?
Elastic::ES_SERVERLESS_SERVICE_VERSION
Elastic::ES_SERVERLESS_SERVICE_VERSION || Elastic::ELASTICSEARCH_SERVICE_VERSION
elsif elasticsearch?
Elastic::ELASTICSEARCH_SERVICE_VERSION
elsif defined?(Elasticsearch::VERSION)
Expand Down

0 comments on commit 37b310b

Please sign in to comment.