From 84173ff489a16f032d12a288aff9bb026f7fcf44 Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 1 Jun 2020 14:11:01 +0200 Subject: [PATCH] added argument to insecure client --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 7d441ec..0075c1e 100644 --- a/client.go +++ b/client.go @@ -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 } }