From 8565cefe4eb945e2068a0431364166e42ecf2f50 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 22 Dec 2020 16:32:58 -0800 Subject: [PATCH] fix: allow HTTP2.0 to be always configured --- cmd/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils.go b/cmd/utils.go index 452a50f57..2528ad61d 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -481,7 +481,7 @@ func newInternodeHTTPTransport(tlsConfig *tls.Config, dialTimeout time.Duration) DisableCompression: true, } - if globalIsTLS { + if tlsConfig != nil { trhttp2, _ := http2.ConfigureTransports(tr) if trhttp2 != nil { // ReadIdleTimeout is the timeout after which a health check using ping @@ -544,7 +544,7 @@ func newCustomHTTPTransport(tlsConfig *tls.Config, dialTimeout time.Duration) fu DisableCompression: true, } - if globalIsTLS { + if tlsConfig != nil { trhttp2, _ := http2.ConfigureTransports(tr) if trhttp2 != nil { // ReadIdleTimeout is the timeout after which a health check using ping