Merge pull request #6012 from mitchellh/sethvargo/user_agent

Use a properly-formatted custom User-Agent
This commit is contained in:
Seth Vargo 2015-07-20 23:54:31 -04:00
commit 06c1e1ee1b
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ module Vagrant
class Downloader
# Custom user agent provided to cURL so that requests to URL shorteners
# 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 :destination