Skip to content

Commit

Permalink
fix: allow HTTP2.0 to be always configured
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Dec 23, 2020
1 parent 8cdf210 commit 8565cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8565cef

Please sign in to comment.