mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-07 03:31:31 +01:00
update hyper-rustls to 0.22
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user