From 719e845d5e6f88b5fe14e7234b12a8fcc8245300 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Thu, 10 Aug 2023 17:34:29 +0900 Subject: [PATCH] fix: typo --- rpxy-lib/src/handler/forwarder.rs | 2 +- rpxy-lib/src/handler/handler_main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpxy-lib/src/handler/forwarder.rs b/rpxy-lib/src/handler/forwarder.rs index f1ba5e3..4bfd15b 100644 --- a/rpxy-lib/src/handler/forwarder.rs +++ b/rpxy-lib/src/handler/forwarder.rs @@ -59,7 +59,7 @@ impl Forwarder, Body> { let connector_h2 = hyper_rustls::HttpsConnectorBuilder::new() .with_webpki_roots() .https_or_http() - .enable_http1() + .enable_http2() .build(); let inner = Client::builder().build::<_, Body>(connector); diff --git a/rpxy-lib/src/handler/handler_main.rs b/rpxy-lib/src/handler/handler_main.rs index fb83d69..8b13dc7 100644 --- a/rpxy-lib/src/handler/handler_main.rs +++ b/rpxy-lib/src/handler/handler_main.rs @@ -365,7 +365,7 @@ where // If not specified (force_httpXX_upstream) and https, version is preserved except for http/3 if upstream_chosen.uri.scheme() == Some(&Scheme::HTTP) { // Change version to http/1.1 when destination scheme is http - debug!("Change version to http/1.1 when destination scheme is http."); + debug!("Change version to http/1.1 when destination scheme is http unless upstream option enabled."); *req.version_mut() = Version::HTTP_11; } else if req.version() == Version::HTTP_3 { // HTTP/3 is always https