From f55a873375454b3efe66e72bf3cc20774e9f117d Mon Sep 17 00:00:00 2001 From: lwh Date: Wed, 13 Dec 2017 21:37:05 +0800 Subject: [PATCH] specify the default http.transport Signed-off-by: lwh --- store/consul/consul.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/consul/consul.go b/store/consul/consul.go index cb64be72..9209fe1c 100644 --- a/store/consul/consul.go +++ b/store/consul/consul.go @@ -73,6 +73,7 @@ func New(endpoints []string, options *store.Config) (store.Store, error) { config := api.DefaultConfig() s.config = config config.HttpClient = http.DefaultClient + config.HttpClient.Transport = http.DefaultTransport config.Address = endpoints[0] config.Scheme = "http"