registry: fix content-type for PushImageJSONIndex

Upstream-commit: d93023daa9db2b6d38f7eefc8611e8226d75bbaf
Component: engine
This commit is contained in:
Johan Euphrosine
2013-10-22 11:56:48 -07:00
parent 185088440f
commit 92782b4f08
+1
View File
@@ -504,6 +504,7 @@ func (r *Registry) PushImageJSONIndex(indexEp, remote string, imgList []*ImgData
if err != nil {
return nil, err
}
req.Header.Add("Content-type", "application/json")
req.SetBasicAuth(r.authConfig.Username, r.authConfig.Password)
req.ContentLength = int64(len(imgListJSON))
req.Header.Set("X-Docker-Token", "true")