diff --git a/CHANGELOG.md b/CHANGELOG.md index b66ebc344..72b46c3ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,8 @@ BUG FIXES: - core: Fix crash case when destroying with an invalid provisioner. [GH-4281] - core: Box names with colons work on Windows. [GH-4100] - core: Cleanup all temp files. [GH-4103] + - core: User curlrc is not loaded, preventing strange download issues. + [GH-4328] - commands/package: base package won't crash with exception [GH-4017] - commands/rsync-auto: Destroyed machines won't raise exceptions. [GH-4031] - communicators/ssh: Nicer error if remote unexpectedly disconects. [GH-4038] diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb index c671b863d..8756fc30f 100644 --- a/lib/vagrant/util/downloader.rb +++ b/lib/vagrant/util/downloader.rb @@ -189,6 +189,7 @@ module Vagrant def options # Build the list of parameters to execute with cURL options = [ + "-q", "--fail", "--location", "--max-redirs", "10", diff --git a/test/unit/vagrant/util/downloader_test.rb b/test/unit/vagrant/util/downloader_test.rb index 960e27462..68f7378b9 100644 --- a/test/unit/vagrant/util/downloader_test.rb +++ b/test/unit/vagrant/util/downloader_test.rb @@ -22,7 +22,7 @@ describe Vagrant::Util::Downloader do describe "#download!" do let(:curl_options) { - ["--fail", "--location", "--max-redirs", "10", + ["-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", described_class::USER_AGENT, "--output", destination, source, {}] } @@ -76,7 +76,7 @@ describe Vagrant::Util::Downloader do describe "#head" do let(:curl_options) { - ["--fail", "--location", "--max-redirs", "10", "--user-agent", described_class::USER_AGENT, source, {}] + ["-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", described_class::USER_AGENT, source, {}] } it "returns the output" do