add the logic for http back when creating a client

Signed-off-by: Tom Runyon <tom@defenseunicorns.com>

Signed-off-by: Tom Runyon <tom@defenseunicorns.com>
pull/11623/head
Tom Runyon 3 years ago
parent e3e85b0912
commit a6a7eb443c
No known key found for this signature in database
GPG Key ID: D1CF51977E0E790F

@ -139,6 +139,9 @@ func NewClient(options ...ClientOption) (*Client, error) {
if client.httpClient != nil { if client.httpClient != nil {
opts = append(opts, auth.WithResolverClient(client.httpClient)) opts = append(opts, auth.WithResolverClient(client.httpClient))
} }
if client.plainHTTP {
opts = append(opts, auth.WithResolverPlainHTTP())
}
resolver, err := client.authorizer.ResolverWithOpts(opts...) resolver, err := client.authorizer.ResolverWithOpts(opts...)
if err != nil { if err != nil {

Loading…
Cancel
Save