From ab249c28a25261fd6e02b5a6216e3e2cf4282389 Mon Sep 17 00:00:00 2001 From: dhij Date: Thu, 17 Aug 2023 10:54:37 -0400 Subject: [PATCH] registry/handlers avoid calling buh.Upload.Close() on PUT --- registry/handlers/blobupload.go | 1 - 1 file changed, 1 deletion(-) diff --git a/registry/handlers/blobupload.go b/registry/handlers/blobupload.go index 5a163bb3b6..24db0dcfa6 100644 --- a/registry/handlers/blobupload.go +++ b/registry/handlers/blobupload.go @@ -200,7 +200,6 @@ func (buh *blobUploadHandler) PutBlobUploadComplete(w http.ResponseWriter, r *ht buh.Errors = append(buh.Errors, v2.ErrorCodeBlobUploadUnknown) return } - defer buh.Upload.Close() dgstStr := r.FormValue("digest") // TODO(stevvooe): Support multiple digest parameters!