diff --git a/crates/unftp-auth-rest/src/lib.rs b/crates/unftp-auth-rest/src/lib.rs index 0e676a1a..f0a8e504 100644 --- a/crates/unftp-auth-rest/src/lib.rs +++ b/crates/unftp-auth-rest/src/lib.rs @@ -253,7 +253,13 @@ impl Authenticator for RestAuthenticator { .body(Body::from(body)) .map_err(|e| AuthenticationError::with_source("rest authenticator http client error", e))?; - let client = Client::new(); + let https = hyper_rustls::HttpsConnectorBuilder::new() + .with_native_roots() + .https_or_http() + .enable_http1() + .build(); + + let client = Client::builder().build(https); let resp = client .request(req)