Merge pull request #6012 from mitchellh/sethvargo/user_agent
Use a properly-formatted custom User-Agent
This commit is contained in:
commit
06c1e1ee1b
|
@ -14,7 +14,9 @@ module Vagrant
|
||||||
class Downloader
|
class Downloader
|
||||||
# Custom user agent provided to cURL so that requests to URL shorteners
|
# Custom user agent provided to cURL so that requests to URL shorteners
|
||||||
# are properly tracked.
|
# are properly tracked.
|
||||||
USER_AGENT = "Vagrant/#{VERSION}"
|
#
|
||||||
|
# Vagrant/1.7.4 (+https://www.vagrantup.com; ruby2.1.0)
|
||||||
|
USER_AGENT = "Vagrant/#{VERSION} (+https://www.vagrantup.com; #{RUBY_ENGINE}#{RUBY_VERSION})".freeze
|
||||||
|
|
||||||
attr_reader :source
|
attr_reader :source
|
||||||
attr_reader :destination
|
attr_reader :destination
|
||||||
|
|
Loading…
Reference in New Issue