We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bf3f6e commit ee0634bCopy full SHA for ee0634b
lib/excon.rb
@@ -20,7 +20,9 @@ def defaults
20
:connect_timeout => 60,
21
:debug_request => false,
22
:debug_response => false,
23
- :headers => {},
+ :headers => {
24
+ 'User-Agent' => USER_AGENT
25
+ },
26
:idempotent => false,
27
:instrumentor_name => 'excon',
28
:middlewares => [
lib/excon/constants.rb
@@ -78,6 +78,7 @@ module Excon
78
]
79
80
VERSION = '0.25.1'
81
+ USER_AGENT = 'excon/' << VERSION
82
83
unless ::IO.const_defined?(:WaitReadable)
84
class ::IO
0 commit comments