From 0a1e7a7be45fe19018ab6c0977614642c7eeec2b Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Mon, 6 Feb 2017 17:47:56 -0500 Subject: [PATCH] ConfigureTLS() sets default HttpClient if nil (#2329) --- api/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client.go b/api/client.go index 88a8ea4f95..fa06d46cef 100644 --- a/api/client.go +++ b/api/client.go @@ -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