diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d15e8..342e144 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Unreleased +* Add Procore-Sdk-Language header to all requests + + PR #45 - https://github.com/procore/ruby-sdk/pull/45 + + *Benjamin Ross* + * Remove Redis.exists warning PR #46 - https://github.com/procore/ruby-sdk/pull/46 diff --git a/lib/procore/requestable.rb b/lib/procore/requestable.rb index 4babc7e..bbcd586 100644 --- a/lib/procore/requestable.rb +++ b/lib/procore/requestable.rb @@ -343,7 +343,8 @@ def headers(options = {}) "Accepts" => "application/json", "Authorization" => "Bearer #{access_token}", "Content-Type" => "application/json", - "Procore-Sdk-Version" => "ruby-#{Procore::VERSION}", + "Procore-Sdk-Version" => Procore::VERSION, + "Procore-Sdk-Language" => "ruby", "User-Agent" => Procore.configuration.user_agent, }.tap do |headers| if options[:idempotency_token] diff --git a/test/procore/requestable_test.rb b/test/procore/requestable_test.rb index 6db608a..ea2457d 100644 --- a/test/procore/requestable_test.rb +++ b/test/procore/requestable_test.rb @@ -26,7 +26,8 @@ def headers "Accepts" => "application/json", "Authorization" => "Bearer token", "Content-Type" => "application/json", - "Procore-Sdk-Version" => "ruby-#{Procore::VERSION}", + "Procore-Sdk-Version" => Procore::VERSION, + "Procore-Sdk-Language" => "ruby", } end