Skip to content

Commit

Permalink
Use HttpsConnectorBuilder to use native roots
Browse files Browse the repository at this point in the history
Signed-off-by: kazk <kazk.dev@gmail.com>
  • Loading branch information
kazk committed Nov 12, 2021
1 parent e22878c commit 474a52d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kube-client/src/client/auth/oauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ impl Gcp {
not(any(feature = "openssl-tls", feature = "native-tls")),
feature = "rustls-tls"
))]
let https = hyper_rustls::HttpsConnector::with_native_roots();
let https = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.https_only()
.enable_http1()
.build();

let client = hyper::Client::builder().build::<_, hyper::Body>(https);

Expand Down

0 comments on commit 474a52d

Please sign in to comment.