diff --git a/docs/registry.go b/docs/registry.go index 748636dca..e10516f9a 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -656,6 +656,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)