summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorjannfis <jann@mistrust.net>2022-01-14 12:21:37 +0100
committerGitHub <noreply@github.com>2022-01-14 12:21:37 +0100
commite38f0e6c2daea2f630402cbda2d8d1eb61906be2 (patch)
treee7fb96ea6ce0c97aa8d84df0cc451fd2b6dd0666 /pkg
parenta1a57c0e9a8ca1a8430b07d52c0c0188fb33a076 (diff)
fix: Use endpoint's transport also for token handler (#349)
Signed-off-by: jannfis <jann@mistrust.net>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/registry/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/registry/client.go b/pkg/registry/client.go
index b3beb82..6b6fe32 100644
--- a/pkg/registry/client.go
+++ b/pkg/registry/client.go
@@ -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{