diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..1ca55f4 Binary files /dev/null and b/.DS_Store differ diff --git a/libs/httpclient/main.go b/libs/httpclient/main.go index bb2d744..e0e9087 100644 --- a/libs/httpclient/main.go +++ b/libs/httpclient/main.go @@ -2,6 +2,7 @@ package httpclient import ( "chip/libs/logger" + "crypto/tls" "fmt" "io/ioutil" "net/http" @@ -23,6 +24,7 @@ func Request(method string, host string, path string, headers map[string][]strin reqURL, _ := url.Parse(fmt.Sprintf("%s%s", host, path)) reqBody := ioutil.NopCloser(strings.NewReader(body)) + http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true} req := &http.Request{ Method: strings.ToUpper(method), URL: reqURL,