fix: typo

This commit is contained in:
Jun Kurihara 2023-08-10 17:34:29 +09:00
commit 719e845d5e
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ impl Forwarder<HttpsConnector<HttpConnector>, Body> {
let connector_h2 = hyper_rustls::HttpsConnectorBuilder::new() let connector_h2 = hyper_rustls::HttpsConnectorBuilder::new()
.with_webpki_roots() .with_webpki_roots()
.https_or_http() .https_or_http()
.enable_http1() .enable_http2()
.build(); .build();
let inner = Client::builder().build::<_, Body>(connector); let inner = Client::builder().build::<_, Body>(connector);

View file

@ -365,7 +365,7 @@ where
// If not specified (force_httpXX_upstream) and https, version is preserved except for http/3 // If not specified (force_httpXX_upstream) and https, version is preserved except for http/3
if upstream_chosen.uri.scheme() == Some(&Scheme::HTTP) { if upstream_chosen.uri.scheme() == Some(&Scheme::HTTP) {
// Change version to http/1.1 when destination scheme is 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; *req.version_mut() = Version::HTTP_11;
} else if req.version() == Version::HTTP_3 { } else if req.version() == Version::HTTP_3 {
// HTTP/3 is always https // HTTP/3 is always https