Skip to content

Commit

Permalink
Allow https for user detail (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen authored Dec 15, 2024
1 parent 205fc0a commit 50b59e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/infra/userdetail_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ impl UserDetailProvider for HTTPUserDetailProvider {
.body(Body::empty())
.map_err(|e| UserDetailError::with_source("error creating request", 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)
Expand Down

0 comments on commit 50b59e0

Please sign in to comment.