Commit 186f6852 authored by Michael Yang's avatar Michael Yang
Browse files

retry PUT

parent 12efcbb0
...@@ -175,7 +175,7 @@ func (b *blobUpload) Run(ctx context.Context, opts *RegistryOptions) { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment