diff options
| author | Xu Cheng | 2016-07-14 13:14:49 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-07-14 13:14:49 +0800 |
| commit | 28861ac92d910abbe014a05c4418ee077371d9ca (patch) | |
| tree | 02f4f58932a8efe4e3eec6f8b0c2b575cec1b9bc /Library/Homebrew | |
| parent | ed9bb449d1bfc837d46b2572e9ffc2a70b32f9de (diff) | |
| download | brew-28861ac92d910abbe014a05c4418ee077371d9ca.tar.bz2 | |
CurlDownloadStrategy#_fetch: fix unintended variable modification
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
