From 186f6852244c421bfa95a1ab1e21986d1f33474b Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 25 Oct 2023 14:37:53 -0700 Subject: [PATCH] retry PUT --- server/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/upload.go b/server/upload.go index aecddfbb..565d5f61 100644 --- a/server/upload.go +++ b/server/upload.go @@ -175,7 +175,7 @@ func (b *blobUpload) Run(ctx context.Context, opts *RegistryOptions) { headers.Set("Content-Type", "application/octet-stream") headers.Set("Content-Length", "0") - resp, err := makeRequest(ctx, "PUT", requestURL, headers, nil, opts) + resp, err := makeRequestWithRetry(ctx, "PUT", requestURL, headers, nil, opts) if err != nil { b.err = err return