From b9a8f615d8b21cf2064a789820c5af70e13c8d23 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Wed, 24 Mar 2021 01:54:19 -0400 Subject: [PATCH] CurlGitHubPackagesDownloadStrategy: revert allowing timeouts --- Library/Homebrew/download_strategy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 31289f7bbc..9b6292a3ef 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -537,14 +537,14 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy private - def _fetch(url:, resolved_url:, timeout:) + def _fetch(url:, resolved_url:) raise "Empty checksum" if checksum.blank? raise "Empty name" if name.blank? _, org, repo, = *url.match(GitHubPackages::URL_REGEX) blob_url = "https://ghcr.io/v2/#{org}/#{repo}/#{name}/blobs/sha256:#{checksum}" - curl_download(blob_url, "--header", "Authorization: Bearer", to: temporary_path, timeout: timeout) + curl_download(blob_url, "--header", "Authorization: Bearer", to: temporary_path) end end