Explorar o código

use hasprefix instead

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
d27fe4a33a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/registry/registry.go

+ 1 - 1
internal/registry/registry.go

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