Merge branch 'master' of http://474420502.top/eson/requests
This commit is contained in:
commit
72491204d6
|
@ -229,7 +229,7 @@ func (ses *Session) SetConfig(typeConfig TypeConfig, values interface{}) {
|
||||||
ses.transport.Proxy = nil
|
ses.transport.Proxy = nil
|
||||||
}
|
}
|
||||||
case CInsecure:
|
case CInsecure:
|
||||||
ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: !values.(bool)}
|
ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: values.(bool)}
|
||||||
case CTLS:
|
case CTLS:
|
||||||
ses.transport.TLSClientConfig = values.(*tls.Config)
|
ses.transport.TLSClientConfig = values.(*tls.Config)
|
||||||
case CBasicAuth:
|
case CBasicAuth:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user