Explorar el Código

use hasprefix instead

Alexander Belanger hace 4 años
padre
commit
d27fe4a33a
Se han modificado 1 ficheros con 1 adiciones y 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)
 	}