added argument to insecure client
This commit is contained in:
parent
8a4ef3628f
commit
84173ff489
1 changed files with 2 additions and 2 deletions
|
|
@ -93,9 +93,9 @@ func WithHTTPClient(httpClient *http.Client) ClientOption {
|
|||
}
|
||||
}
|
||||
|
||||
func WithInsecureClient() ClientOption {
|
||||
func WithInsecureClient(insecure bool) ClientOption {
|
||||
return func(client *Client) {
|
||||
client.insecure = true
|
||||
client.insecure = insecure
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue