mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-27 00:04:03 -05:00
set a default user agent
This commit is contained in:
parent
970ab0c5be
commit
f6831b53b3
@ -82,6 +82,8 @@ module Faraday
|
|||||||
proxy(options.fetch(:proxy) { ENV['http_proxy'] })
|
proxy(options.fetch(:proxy) { ENV['http_proxy'] })
|
||||||
|
|
||||||
yield self if block_given?
|
yield self if block_given?
|
||||||
|
|
||||||
|
@headers[:user_agent] ||= "Faraday v#{VERSION}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Public: Sets the Hash of URI query unencoded key/value pairs.
|
# Public: Sets the Hash of URI query unencoded key/value pairs.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user