Set user agent to Vagrant + version

/cc @fgrehm
This commit is contained in:
Mitchell Hashimoto 2013-07-28 20:51:35 -07:00
parent 9ba77a5ed5
commit ff36a46178
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module Vagrant
class Downloader
# Custom user agent provided to cURL so that requests to URL shorteners
# are properly tracked.
USER_AGENT = "Vagrant cURL Downloader"
USER_AGENT = "Vagrant/#{VERSION}"
def initialize(source, destination, options=nil)
@logger = Log4r::Logger.new("vagrant::util::downloader")