Skip to content

Commit

Permalink
Updates elasticsearch path in api Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Oct 15, 2024
1 parent cdec425 commit 1cf25c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch-api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in elasticsearch-api.gemspec
gemspec

if File.exist? File.expand_path("../../elasticsearch/elasticsearch.gemspec", __dir__)
gem 'elasticsearch', path: File.expand_path('../../elasticsearch', __dir__), require: false
if File.exist? File.expand_path('../elasticsearch/elasticsearch.gemspec', __dir__)
gem 'elasticsearch', path: File.expand_path('../elasticsearch', __dir__), require: false
end

group :development do
Expand Down
1 change: 1 addition & 0 deletions elasticsearch/lib/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def elasticsearch_validation_request

def sent_user_agent?(arguments)
return unless (headers = arguments&.[](:transport_options)&.[](:headers))

!!headers.keys.detect { |h| h =~ /user-?_?agent/ }
end

Expand Down

0 comments on commit 1cf25c0

Please sign in to comment.