Url scheme warning log (#5819)
fix conditions for logging about url scheme
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user