This commit is contained in:
kahirokunn 2025-06-19 06:06:53 +03:00 committed by GitHub
commit b53f83084e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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