Browse Source

use hasprefix instead

Alexander Belanger 4 years ago
parent
commit
d27fe4a33a
1 changed files with 1 additions and 1 deletions
  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)
 	}