Skip to content

Commit

Permalink
fix: Use endpoint's transport also for token handler (#349)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <jann@mistrust.net>
  • Loading branch information
jannfis committed Jan 14, 2022
1 parent a1a57c0 commit e38f0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (clt *registryClient) NewRepository(nameInRepository string) error {
authTransport := transport.NewTransport(
clt.endpoint.GetTransport(), auth.NewAuthorizer(
challengeManager1,
auth.NewTokenHandler(nil, clt.creds, nameInRepository, "pull"),
auth.NewTokenHandler(clt.endpoint.GetTransport(), clt.creds, nameInRepository, "pull"),
auth.NewBasicHandler(clt.creds)))

rlt := &rateLimitTransport{
Expand Down

0 comments on commit e38f0e6

Please sign in to comment.