diff --git a/api/rest/http.go b/api/rest/http.go index cd8a3bd..7feabe9 100644 --- a/api/rest/http.go +++ b/api/rest/http.go @@ -2,6 +2,7 @@ package api import ( "bytes" + "crypto/tls" "encoding/json" "net/http" ) @@ -47,7 +48,13 @@ func (c *HttpClient) SendPost(api, url string, data, out any) (any, error) { func (c *HttpClient) sendRequest(api, url, method string, data any) (*http.Response, error) { apiUrl := api + url // FIXME - client := &http.Client{} + + tr := &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // FIXME + } + + // Create an HTTP client with the custom transport + client := &http.Client{Transport: tr} // FIXME json, err := json.Marshal(&data) if err != nil {