未验证 提交 ed87211d 编辑于 作者: Rylan Polster's avatar Rylan Polster 提交者: GitHub
浏览文件

Merge pull request #10923 from Rylan12/revert-more-timeouts

CurlGitHubPackagesDownloadStrategy: revert allowing timeouts
......@@ -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
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册