diff --git a/registry/registry.go b/registry/registry.go index 24c55125ce..c8d000823c 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -522,6 +522,7 @@ func (r *Registry) PushImageLayerRegistry(imgID string, layer io.Reader, registr if err != nil { return "", "", err } + req.Header.Add("Content-Type", "application/octet-stream") req.ContentLength = -1 req.TransferEncoding = []string{"chunked"} setTokenAuth(req, token)