Skip to content

Commit 4dfec7f

Browse files
committed
pusher: add missing authentication support for requests
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent e922d55 commit 4dfec7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

remotes/docker/pusher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
138138
//
139139
// for the private repo, we should remove mount-from
140140
// query and send the request again.
141-
resp, err = preq.do(pctx)
141+
resp, err = preq.doWithRetries(pctx, nil)
142142
if err != nil {
143143
return nil, err
144144
}
@@ -238,7 +238,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
238238

239239
go func() {
240240
defer close(respC)
241-
resp, err := req.do(ctx)
241+
resp, err := req.doWithRetries(ctx, nil)
242242
if err != nil {
243243
respC <- response{err: err}
244244
pr.CloseWithError(err)

0 commit comments

Comments
 (0)