From c56ebd9cebc647365ccece85f0b09168eff12625 Mon Sep 17 00:00:00 2001 From: Jack Wampler Date: Mon, 2 Jun 2025 09:11:16 -0600 Subject: [PATCH] Url scheme warning log (#5819) fix conditions for logging about url scheme --- common/http-api-client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/http-api-client/src/lib.rs b/common/http-api-client/src/lib.rs index 160f412d3b..0611a22ebd 100644 --- a/common/http-api-client/src/lib.rs +++ b/common/http-api-client/src/lib.rs @@ -439,7 +439,7 @@ impl ClientBuilder { // warn about any invalid URLs urls.iter() - .filter(|url| url.scheme().starts_with("http")) + .filter(|url| !url.scheme().contains("http") && !url.scheme().contains("https")) .for_each(|url| { warn!("the provided url ('{url}') does not use HTTP / HTTPS scheme"); });