Skip to content
Snippets Groups Projects
Unverified Commit 28861ac9 authored by Xu Cheng's avatar Xu Cheng
Browse files

CurlDownloadStrategy#_fetch: fix unintended variable modification

parent ed9bb449
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment