Skip to content

Commit

Permalink
Merge pull request #103 from bububa/release/3.0.0
Browse files Browse the repository at this point in the history
http client proxy Transport support with InsecureSkipVerify
  • Loading branch information
Matrix-X authored Feb 19, 2024
2 parents 6560221 + 78aac1b commit 599cff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http/drivers/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func NewHttpClient(config *contract.ClientConfig) (*Client, error) {
Certificates: []tls.Certificate{certPair},
}, Proxy: proxy}
} else if proxy != nil {
coreClient.Transport = &http.Transport{Proxy: proxy}
coreClient.Transport = &http.Transport{TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
}, Proxy: proxy}
}
return &Client{
conf: config,
Expand Down

0 comments on commit 599cff2

Please sign in to comment.