From c3416e91844b4ef432781877d49bb6e7ed3e1d2e Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 8 Nov 2024 17:45:38 +0300 Subject: [PATCH] Fix wrap reader threshold error Signed-off-by: Alex Vanin --- api/layer/object.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/layer/object.go b/api/layer/object.go index b1a59a4d..e1dc75f5 100644 --- a/api/layer/object.go +++ b/api/layer/object.go @@ -593,6 +593,7 @@ func wrapReaderThreshold(input io.Reader, threshold int) io.Reader { if err != nil { _, _ = w.Write(buf[:cur]) _ = w.CloseWithError(err) + break } if cur < threshold { continue