Skip to content

Commit

Permalink
feat: add user-agent headers
Browse files Browse the repository at this point in the history
include in user-agent:
- sdk version
- ruby version
- platform it is running on

did not use RUBY_DESCRIPTION as it is a bit too verbose.
  • Loading branch information
rarruda committed Jan 11, 2024
1 parent 6328d73 commit bb2d922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unleash/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def refresh_backup_file!

def http_headers
{
'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]",
'UNLEASH-INSTANCEID' => self.instance_id,
'UNLEASH-APPNAME' => self.app_name,
'Unleash-Client-Spec' => '5.0.2'
Expand Down

0 comments on commit bb2d922

Please sign in to comment.