aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-07-14 13:14:49 +0800
committerXu Cheng2016-07-14 13:14:49 +0800
commit28861ac92d910abbe014a05c4418ee077371d9ca (patch)
tree02f4f58932a8efe4e3eec6f8b0c2b575cec1b9bc
parented9bb449d1bfc837d46b2572e9ffc2a70b32f9de (diff)
downloadbrew-28861ac92d910abbe014a05c4418ee077371d9ca.tar.bz2
CurlDownloadStrategy#_fetch: fix unintended variable modification
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 4fa0b3803..061e551a6 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -333,7 +333,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
url = @url
if ENV["HOMEBREW_ARTIFACT_DOMAIN"]
- url.sub!(%r{^((ht|f)tps?://)?}, ENV["HOMEBREW_ARTIFACT_DOMAIN"].chomp("/") + "/")
+ url = url.sub(%r{^((ht|f)tps?://)?}, ENV["HOMEBREW_ARTIFACT_DOMAIN"].chomp("/") + "/")
ohai "Downloading from #{url}"
end