mirror of
https://github.com/distribution/distribution.git
synced 2025-06-26 15:34: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()
|
||||
|
||||
remoteURL := r.remoteURL
|
||||
remoteURL.Path = "/v2/"
|
||||
if remoteURL.Path == "" || remoteURL.Path == "/" {
|
||||
remoteURL.Path = "/v2/"
|
||||
}
|
||||
challenges, err := r.cm.GetChallenges(remoteURL)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user