Merge pull request #3439 from dotcloud/bump_v0.7.3

Bump v0.7.3
This commit is contained in:
Tianon Gravi 2014-01-03 16:01:56 -08:00
commit e1c4101dce

View File

@ -448,6 +448,11 @@ func (r *Registry) PushImageLayerRegistry(imgID string, layer io.Reader, registr
if err != nil {
return "", fmt.Errorf("Failed to upload layer: %s", err)
}
if rc, ok := layer.(io.Closer); ok {
if err := rc.Close(); err != nil {
return "", err
}
}
defer res.Body.Close()
if res.StatusCode != 200 {