mirror of
https://github.com/containers/skopeo.git
synced 2025-07-05 19:06:54 +00:00
Merge pull request #41 from projectatomic/fix-url
docker.go: do not concatenate url in ping
This commit is contained in:
commit
aff6aa7c2c
@ -582,7 +582,8 @@ func (i *dockerImage) ping() (*pingResponse, error) {
|
||||
client.Transport = i.transport
|
||||
}
|
||||
ping := func(scheme string) (*pingResponse, error) {
|
||||
resp, err := client.Get(scheme + "://" + i.registry + "/v2/")
|
||||
url := fmt.Sprintf(baseURL, scheme, i.registry)
|
||||
resp, err := client.Get(url)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user