mirror of
https://github.com/gosticks/brew.git
synced 2026-10-04 22:46:55 +00:00
Force GET for head requests.
This commit is contained in:
@@ -344,7 +344,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
|
||||
url = url.sub(%r{^((ht|f)tps?://)?}, ENV["HOMEBREW_ARTIFACT_DOMAIN"].chomp("/") + "/")
|
||||
end
|
||||
|
||||
out, _, status= curl_output("--location", "--silent", "--head", url.to_s)
|
||||
out, _, status= curl_output("--location", "--silent", "--head", "--request", "GET", url.to_s)
|
||||
|
||||
lines = status.success? ? out.lines.map(&:chomp) : []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user