Procházet zdrojové kódy

use hasprefix instead

Alexander Belanger před 4 roky
rodič
revize
d27fe4a33a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      internal/registry/registry.go

+ 1 - 1
internal/registry/registry.go

@@ -131,7 +131,7 @@ func (r *Registry) listGCRRepositories(
 
 
 	regURL := r.URL
 	regURL := r.URL
 
 
-	if !strings.Contains(regURL, "http") {
+	if !strings.HasPrefix(regURL, "http") {
 		regURL = fmt.Sprintf("https://%s", regURL)
 		regURL = fmt.Sprintf("https://%s", regURL)
 	}
 	}