From 885c33a84bcb6ef3fbbfc38919fa1f59305b1c8c Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Fri, 19 Jan 2024 06:54:21 +0300 Subject: [PATCH] permit https over HTTP2 support --- ipfs-api-backend-hyper/Cargo.toml | 2 +- ipfs-api-backend-hyper/src/backend.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipfs-api-backend-hyper/Cargo.toml b/ipfs-api-backend-hyper/Cargo.toml index 6f7446b..29baa37 100644 --- a/ipfs-api-backend-hyper/Cargo.toml +++ b/ipfs-api-backend-hyper/Cargo.toml @@ -29,7 +29,7 @@ futures = "0.3" http = "0.2" hyper = { version = "0.14", features = ["http1", "http2", "client", "tcp"] } hyper-multipart-rfc7578 = "0.8" -hyper-rustls = { version = "0.23", features = ["rustls-native-certs"], optional = true } +hyper-rustls = { version = "0.24", features = ["http2", "rustls-native-certs"], optional = true } hyper-tls = { version = "0.5", optional = true } ipfs-api-prelude = { version = "0.6", path = "../ipfs-api-prelude" } thiserror = "1" diff --git a/ipfs-api-backend-hyper/src/backend.rs b/ipfs-api-backend-hyper/src/backend.rs index 0b3dce7..4ead924 100644 --- a/ipfs-api-backend-hyper/src/backend.rs +++ b/ipfs-api-backend-hyper/src/backend.rs @@ -84,7 +84,7 @@ impl_default!( hyper_rustls::HttpsConnectorBuilder::new() .with_native_roots() .https_or_http() - .enable_http1() + .enable_all_versions() .build() );