From d88d126ad9ed794c7b3bda94344e9183bf263656 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 20 Jul 2015 23:33:31 -0400 Subject: [PATCH] Use a properly-formatted custom User-Agent --- lib/vagrant/util/downloader.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb index a3ee5459e..edaf99e85 100644 --- a/lib/vagrant/util/downloader.rb +++ b/lib/vagrant/util/downloader.rb @@ -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