Skip to content

Commit 2b97e51

Browse files
authored
Merge pull request #84 from maxmind/nobeid/user-agent-version
add ruby and http lib version to user agent
2 parents 62f9b27 + 122fc8b commit 2b97e51

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Added the processor `:shopify_payments` to `Minfraud::Components::Payment`.
66
* Added the processor `:google_pay` to `Minfraud::Components::Payment`.
77
* Added the processor `:placetopay` to `Minfraud::Components::Payment`.
8+
* In addition to the minfraud gem version, the User-Agent now includes the
9+
version of Ruby and the version of the HTTP client in all HTTP requests.
810

911
## v2.2.0 (2022-03-28)
1012

lib/minfraud.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def make_http_client
7676
pass: @license_key,
7777
).headers(
7878
accept: 'application/json',
79-
user_agent: "minfraud-api-ruby/#{Minfraud::VERSION}",
79+
user_agent: "minfraud-api-ruby/#{Minfraud::VERSION} ruby/#{RUBY_VERSION} http/#{HTTP::VERSION}",
8080
)
8181
end
8282
end

0 commit comments

Comments
 (0)