core: don't load curlrc [GH-4328]

This commit is contained in:
Mitchell Hashimoto 2014-08-10 20:49:53 -07:00
parent 9c24205432
commit e198652e75
3 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,8 @@ BUG FIXES:
- core: Fix crash case when destroying with an invalid provisioner. [GH-4281] - core: Fix crash case when destroying with an invalid provisioner. [GH-4281]
- core: Box names with colons work on Windows. [GH-4100] - core: Box names with colons work on Windows. [GH-4100]
- core: Cleanup all temp files. [GH-4103] - 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/package: base package won't crash with exception [GH-4017]
- commands/rsync-auto: Destroyed machines won't raise exceptions. [GH-4031] - commands/rsync-auto: Destroyed machines won't raise exceptions. [GH-4031]
- communicators/ssh: Nicer error if remote unexpectedly disconects. [GH-4038] - communicators/ssh: Nicer error if remote unexpectedly disconects. [GH-4038]

View File

@ -189,6 +189,7 @@ module Vagrant
def options def options
# Build the list of parameters to execute with cURL # Build the list of parameters to execute with cURL
options = [ options = [
"-q",
"--fail", "--fail",
"--location", "--location",
"--max-redirs", "10", "--max-redirs", "10",

View File

@ -22,7 +22,7 @@ describe Vagrant::Util::Downloader do
describe "#download!" do describe "#download!" do
let(:curl_options) { let(:curl_options) {
["--fail", "--location", "--max-redirs", "10", ["-q", "--fail", "--location", "--max-redirs", "10",
"--user-agent", described_class::USER_AGENT, "--user-agent", described_class::USER_AGENT,
"--output", destination, source, {}] "--output", destination, source, {}]
} }
@ -76,7 +76,7 @@ describe Vagrant::Util::Downloader do
describe "#head" do describe "#head" do
let(:curl_options) { 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 it "returns the output" do