Skip to content

Commit

Permalink
no verify ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
msfidelis committed Sep 3, 2024
1 parent 1ddabad commit 08923a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions libs/httpclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package httpclient

import (
"chip/libs/logger"
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
Expand All @@ -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,
Expand Down

0 comments on commit 08923a6

Please sign in to comment.