retry PUT

This commit is contained in:
Michael Yang 2023-10-25 14:37:53 -07:00
parent 12efcbb057
commit 186f685224

View file

@ -175,7 +175,7 @@ func (b *blobUpload) Run(ctx context.Context, opts *RegistryOptions) {
headers.Set("Content-Type", "application/octet-stream") headers.Set("Content-Type", "application/octet-stream")
headers.Set("Content-Length", "0") 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 { if err != nil {
b.err = err b.err = err
return return