update hyper-rustls to 0.22

This commit is contained in:
Maxime Bedard
2020-12-26 11:31:10 -05:00
parent 63b185b711
commit 07bc4803c0
4 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ base64 = "0.12"
chrono = { version = "0.4", features = ["serde"] }
http = "0.2"
hyper = { version = "0.14", features = ["client", "server", "tcp", "http2"] }
hyper-rustls = { git = "https://github.com/ctz/hyper-rustls" }
hyper-rustls = "0.22"
log = "0.4"
rustls = "0.19"
seahash = "4"

View File

@@ -466,7 +466,7 @@ impl HyperClientBuilder for DefaultHyperClient {
fn build_hyper_client(self) -> hyper::Client<Self::Connector> {
hyper::Client::builder()
.pool_max_idle_per_host(0)
.build::<_, hyper::Body>(hyper_rustls::HttpsConnector::new())
.build::<_, hyper::Body>(hyper_rustls::HttpsConnector::with_native_roots())
}
}

View File

@@ -225,7 +225,7 @@ mod tests {
.await
.unwrap();
let acc = ServiceAccountFlow::new(ServiceAccountFlowOpts { key, subject: None }).unwrap();
let https = HttpsConnector::new();
let https = HttpsConnector::with_native_roots();
let client = hyper::Client::builder()
.pool_max_idle_per_host(0)
.build::<_, hyper::Body>(https);

View File

@@ -216,7 +216,7 @@ async fn create_installed_flow_auth(
}
let mut builder = InstalledFlowAuthenticator::builder(app_secret, method).flow_delegate(
Box::new(FD(hyper::Client::builder().build(HttpsConnector::new()))),
Box::new(FD(hyper::Client::builder().build(HttpsConnector::with_native_roots()))),
);
builder = if let Some(filename) = filename {