mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Update Library/Homebrew/download_strategy.rb
Co-authored-by: Eric Knibbe <enk3@outlook.com>
This commit is contained in:
parent
efa2786732
commit
f051510e67
@ -705,7 +705,7 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
|
|||||||
meta[:headers] ||= []
|
meta[:headers] ||= []
|
||||||
# GitHub Packages authorization header.
|
# GitHub Packages authorization header.
|
||||||
# HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh
|
# HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh
|
||||||
# If using a private GHCR mirror with no Authentication set than do not add the header. In all other cases add it.
|
# If using a private GHCR mirror with no Authentication set then do not add the header. In all other cases add it.
|
||||||
if !Homebrew::EnvConfig.artifact_domain.presence ||
|
if !Homebrew::EnvConfig.artifact_domain.presence ||
|
||||||
Homebrew::EnvConfig.docker_registry_basic_auth_token.presence ||
|
Homebrew::EnvConfig.docker_registry_basic_auth_token.presence ||
|
||||||
Homebrew::EnvConfig.docker_registry_token.presence
|
Homebrew::EnvConfig.docker_registry_token.presence
|
||||||
|
Loading…
x
Reference in New Issue
Block a user