Skip to content

Commit

Permalink
refactor: allow http and https
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus committed Jun 18, 2024
1 parent c62eae8 commit f543af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics-exporter-prometheus/src/exporter/push_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub(super) fn new_push_gateway(
let https = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.expect("no native root CA certificates found")
.https_only()
.https_or_http()
.enable_http1()
.build();
let client: Client<_, Full<Bytes>> = Client::builder(TokioExecutor::new())
Expand Down

0 comments on commit f543af7

Please sign in to comment.