mirror of
https://github.com/distribution/distribution.git
synced 2025-06-28 08:18:18 +00:00
Merge 831de8fa36
into da404778ed
This commit is contained in:
commit
b53f83084e
@ -260,7 +260,9 @@ func (r *remoteAuthChallenger) tryEstablishChallenges(ctx context.Context) error
|
|||||||
defer r.Unlock()
|
defer r.Unlock()
|
||||||
|
|
||||||
remoteURL := r.remoteURL
|
remoteURL := r.remoteURL
|
||||||
|
if remoteURL.Path == "" || remoteURL.Path == "/" {
|
||||||
remoteURL.Path = "/v2/"
|
remoteURL.Path = "/v2/"
|
||||||
|
}
|
||||||
challenges, err := r.cm.GetChallenges(remoteURL)
|
challenges, err := r.cm.GetChallenges(remoteURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user