fix two obvious bugs???

This commit is contained in:
Tobias Schwab 2013-07-02 22:07:02 +00:00
parent 258cbb06c9
commit 7e215123fe

View file

@ -67,7 +67,7 @@ func (r *Registry) GetRemoteHistory(imgId, registry string, token []string) ([]s
func (r *Registry) LookupRemoteImage(imgId, registry string, token []string) bool { func (r *Registry) LookupRemoteImage(imgId, registry string, token []string) bool {
rt := &http.Transport{Proxy: http.ProxyFromEnvironment} rt := &http.Transport{Proxy: http.ProxyFromEnvironment}
req, err := http.NewRequest("GET", registry+"/images/"+imgId+"/json", nil) req, err := http.NewRequest("GET", registry+"/v1/images/"+imgId+"/json", nil)
if err != nil { if err != nil {
return false return false
} }