feat: allow insecure connections on deployment to some self-hosted services
This commit is contained in:
6
internal/pkg/vendors/safeline-sdk/client.go
vendored
6
internal/pkg/vendors/safeline-sdk/client.go
vendored
@@ -1,6 +1,7 @@
|
||||
package safelinesdk
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
@@ -31,6 +32,11 @@ func (c *Client) WithTimeout(timeout time.Duration) *Client {
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Client) WithTLSConfig(config *tls.Config) *Client {
|
||||
c.client.SetTLSClientConfig(config)
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Client) sendRequest(path string, params interface{}) (*resty.Response, error) {
|
||||
url := c.apiHost + path
|
||||
req := c.client.R().
|
||||
|
||||
Reference in New Issue
Block a user