mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
ConfigureTLS() sets default HttpClient if nil (#2329)
This commit is contained in:
parent
a9121ff733
commit
0a1e7a7be4
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ func DefaultConfig() *Config {
|
|||
func (c *Config) ConfigureTLS(t *TLSConfig) error {
|
||||
|
||||
if c.HttpClient == nil {
|
||||
return fmt.Errorf("config HTTP Client must be set")
|
||||
c.HttpClient = DefaultConfig().HttpClient
|
||||
}
|
||||
|
||||
var clientCert tls.Certificate
|
||||
|
|
|
|||
Loading…
Reference in a new issue