Skip to content

Commit 3fc12f6

Browse files
committed
fix(client): don't fail on HTTPs URLs
Closes ClickHouse#58
1 parent d4ecc76 commit 3fc12f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ impl Default for Client {
7373
connector.set_keepalive(Some(TCP_KEEPALIVE));
7474

7575
#[cfg(feature = "tls")]
76-
let connector = HttpsConnector::new_with_connector(connector);
76+
let connector = HttpsConnector::new_with_connector({
77+
connector.enforce_http(false);
78+
connector
79+
});
7780

7881
let client = hyper::Client::builder()
7982
.pool_idle_timeout(POOL_IDLE_TIMEOUT)

0 commit comments

Comments
 (0)