Use a properly-formatted custom User-Agent

This commit is contained in:
Seth Vargo 2015-07-20 23:33:31 -04:00
parent b18671839f
commit d88d126ad9
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