Fixed issue in registry.GetRemoteTags
							parent
							
								
									259eeb382c
								
							
						
					
					
						commit
						03a77bd851
					
				| 
						 | 
					@ -155,6 +155,9 @@ func (r *Registry) GetRemoteTags(registries []string, repository string, token [
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	for _, host := range registries {
 | 
						for _, host := range registries {
 | 
				
			||||||
		endpoint := fmt.Sprintf("%s/v1/repositories/%s/tags", host, repository)
 | 
							endpoint := fmt.Sprintf("%s/v1/repositories/%s/tags", host, repository)
 | 
				
			||||||
 | 
							if !(strings.HasPrefix(endpoint, "http://") || strings.HasPrefix(endpoint, "https://")) {
 | 
				
			||||||
 | 
									endpoint = "https://" + endpoint
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		req, err := r.opaqueRequest("GET", endpoint, nil)
 | 
							req, err := r.opaqueRequest("GET", endpoint, nil)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return nil, err
 | 
								return nil, err
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue