Skip to content

Commit

Permalink
clairctl: don't use internal client
Browse files Browse the repository at this point in the history
This was causing issues with sending an `Authorization` header when not
appropriate.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Oct 18, 2022
1 parent df77d75 commit 66325b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clairctl/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func exportAction(c *cli.Context) error {
}

tr := http.DefaultTransport.(*http.Transport).Clone()
cl, _, err := httputil.Client(httputil.RateLimiter(tr), &commonClaim, cfg)
cl, _, err := httputil.Client(httputil.RateLimiter(tr), nil, cfg)
if err != nil {
return err
}
Expand Down

0 comments on commit 66325b1

Please sign in to comment.