From 212d214b02c641f031dee5bc24716dae009f12a5 Mon Sep 17 00:00:00 2001 From: Ziming Zhang Date: Thu, 16 Apr 2020 16:46:10 +0800 Subject: [PATCH] fix(replication) fix replication hang seems when enable internal tls Signed-off-by: Ziming Zhang --- src/pkg/registry/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/registry/client.go b/src/pkg/registry/client.go index 6b4447e6fed..73b1e9c61ee 100644 --- a/src/pkg/registry/client.go +++ b/src/pkg/registry/client.go @@ -396,7 +396,7 @@ func (c *client) monolithicBlobUpload(location, digest string, size int64, data if err != nil { return err } - req.ContentLength = size + req.ContentLength = -1 resp, err := c.do(req) if err != nil { return err