Url scheme warning log (#5819)

fix conditions for logging about url scheme
This commit is contained in:
Jack Wampler
2025-06-02 09:11:16 -06:00
committed by GitHub
parent b081b20a83
commit c56ebd9ceb
+1 -1
View File
@@ -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");
});