aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-08-08 19:26:33 +0200
committerGitHub2017-08-08 19:26:33 +0200
commit1a30c165bfb82ae846e64c508f06455e0d3f285e (patch)
treeab63c314bed39e41dfe47273902ca14c15515c23 /Library/Homebrew/utils/github.rb
parent93051b27d6886dae6df01544c86df579f21f6410 (diff)
parentae4bafdb365cfa380d129b0a03bd99a1e4d960a4 (diff)
downloadbrew-1a30c165bfb82ae846e64c508f06455e0d3f285e.tar.bz2
Merge pull request #3026 from reitermarkus/refactor-download-strategies
Refactor download strategies.
Diffstat (limited to 'Library/Homebrew/utils/github.rb')
-rw-r--r--Library/Homebrew/utils/github.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index 1a781cee6..07eea4384 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -166,7 +166,7 @@ module GitHub
args += ["--dump-header", headers_tmpfile.path]
- output, errors, status = curl_output(url.to_s, *args)
+ output, errors, status = curl_output(url.to_s, "--location", *args)
output, _, http_code = output.rpartition("\n")
output, _, http_code = output.rpartition("\n") if http_code == "000"
headers = headers_tmpfile.read