Send X-Docker-Endpoints header when validating the images upload with the index at the end of a push

Upstream-commit: db3242e4bb1c31a7319e6273235a9ba6b29a61d4
Component: engine
This commit is contained in:
shin-
2013-06-10 11:21:56 -07:00
parent 52be2c7cb8
commit 398ed3eba0
2 changed files with 9 additions and 4 deletions

View File

@ -489,7 +489,7 @@ func (srv *Server) pushRepository(r *registry.Registry, out io.Writer, name stri
}
out.Write(sf.FormatStatus("Sending image list"))
repoData, err := r.PushImageJSONIndex(name, imgList, false)
repoData, err := r.PushImageJSONIndex(name, imgList, false, nil)
if err != nil {
return err
}
@ -513,7 +513,7 @@ func (srv *Server) pushRepository(r *registry.Registry, out io.Writer, name stri
}
}
if _, err := r.PushImageJSONIndex(name, imgList, true); err != nil {
if _, err := r.PushImageJSONIndex(name, imgList, true, repoData.Endpoints); err != nil {
return err
}
return nil