mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
fix: allow HTTP2.0 to be always configured
This commit is contained in:
parent
8cdf2106b0
commit
8565cefe4e
@ -481,7 +481,7 @@ func newInternodeHTTPTransport(tlsConfig *tls.Config, dialTimeout time.Duration)
|
|||||||
DisableCompression: true,
|
DisableCompression: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
if globalIsTLS {
|
if tlsConfig != nil {
|
||||||
trhttp2, _ := http2.ConfigureTransports(tr)
|
trhttp2, _ := http2.ConfigureTransports(tr)
|
||||||
if trhttp2 != nil {
|
if trhttp2 != nil {
|
||||||
// ReadIdleTimeout is the timeout after which a health check using ping
|
// 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,
|
DisableCompression: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
if globalIsTLS {
|
if tlsConfig != nil {
|
||||||
trhttp2, _ := http2.ConfigureTransports(tr)
|
trhttp2, _ := http2.ConfigureTransports(tr)
|
||||||
if trhttp2 != nil {
|
if trhttp2 != nil {
|
||||||
// ReadIdleTimeout is the timeout after which a health check using ping
|
// ReadIdleTimeout is the timeout after which a health check using ping
|
||||||
|
Loading…
Reference in New Issue
Block a user