update
This commit is contained in:
parent
0d847462b3
commit
44b807d3d1
9
curl.go
9
curl.go
@ -1586,6 +1586,15 @@ func applyOptions(r *Request) error {
|
||||
r.lookUpIPfn = resolver.LookupIPAddr
|
||||
}
|
||||
}
|
||||
if r.skipTLSVerify {
|
||||
if r.transport.TLSClientConfig == nil {
|
||||
r.transport.TLSClientConfig = &tls.Config{}
|
||||
}
|
||||
r.transport.TLSClientConfig.InsecureSkipVerify = true
|
||||
}
|
||||
if r.tlsConfig != nil {
|
||||
r.transport.TLSClientConfig = r.tlsConfig
|
||||
}
|
||||
r.rawClient.Transport = r.transport
|
||||
if r.disableRedirect {
|
||||
r.rawClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user