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