Cereate a new registry object for each request (~session)

This commit is contained in:
Guillaume J. Charmes
2013-05-28 17:12:24 -07:00
parent e84306ca61
commit cd0de83917
3 changed files with 46 additions and 33 deletions
+3
View File
@@ -330,6 +330,9 @@ func (r *Registry) PushImageJsonIndex(remote string, imgList []*ImgData, validat
if validate {
suffix = "images"
}
utils.Debugf("Image list pushed to index:\n%s\n", imgListJson)
req, err := http.NewRequest("PUT", auth.IndexServerAddress()+"/repositories/"+remote+"/"+suffix, bytes.NewReader(imgListJson))
if err != nil {
return nil, err