fix: typo
This commit is contained in:
parent
7c87bb2f72
commit
719e845d5e
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue