Skip to content

Commit

Permalink
fix(client): don't fail on HTTPs URLs
Browse files Browse the repository at this point in the history
Closes #58
  • Loading branch information
loyd committed Sep 27, 2023
1 parent d4ecc76 commit 3fc12f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ impl Default for Client {
connector.set_keepalive(Some(TCP_KEEPALIVE));

#[cfg(feature = "tls")]
let connector = HttpsConnector::new_with_connector(connector);
let connector = HttpsConnector::new_with_connector({
connector.enforce_http(false);
connector
});

let client = hyper::Client::builder()
.pool_idle_timeout(POOL_IDLE_TIMEOUT)
Expand Down

0 comments on commit 3fc12f6

Please sign in to comment.