in lib/elastic/transport/transport/http/curb.rb [109:119]
def user_agent_header(client)
@user_agent ||= begin
meta = ["RUBY_VERSION: #{RUBY_VERSION}"]
if RbConfig::CONFIG && RbConfig::CONFIG['host_os']
meta << "#{RbConfig::CONFIG['host_os'].split('_').first[/[a-z]+/i].downcase} #{RbConfig::CONFIG['target_cpu']}"
end
meta << "Curb #{Curl::CURB_VERSION}"
"elastic-transport-ruby/#{VERSION} (#{meta.join('; ')})"
end
end