From a8a74937a2b2de1b486c9782655b10965d928344 Mon Sep 17 00:00:00 2001 From: jbcaron Date: Sat, 17 Aug 2024 14:09:51 +0400 Subject: [PATCH] enable http2 on hyper-rustls builder --- client/http-client/Cargo.toml | 2 +- client/http-client/src/transport.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/http-client/Cargo.toml b/client/http-client/Cargo.toml index 70f45c3713..73c9570c06 100644 --- a/client/http-client/Cargo.toml +++ b/client/http-client/Cargo.toml @@ -16,7 +16,7 @@ publish = true [dependencies] async-trait = "0.1" hyper = { version = "0.14.10", features = ["client", "http1", "http2", "tcp"] } -hyper-rustls = { version = "0.24", optional = true, default-features = false, features = ["http1", "tls12", "logging"] } +hyper-rustls = { version = "0.24", optional = true, default-features = false, features = ["http1", "http2", "tls12", "logging"] } jsonrpsee-types = { workspace = true } jsonrpsee-core = { workspace = true, features = ["client", "http-helpers"] } serde = { version = "1.0", default-features = false, features = ["derive"] } diff --git a/client/http-client/src/transport.rs b/client/http-client/src/transport.rs index d365b99d46..4d74a06c5a 100644 --- a/client/http-client/src/transport.rs +++ b/client/http-client/src/transport.rs @@ -125,6 +125,7 @@ where .with_native_roots() .https_or_http() .enable_http1() + .enable_http2() .build(), #[cfg(feature = "webpki-tls")] CertificateStore::WebPki => hyper_rustls::HttpsConnectorBuilder::new()