Commit 71448e64 authored by Max Kellermann's avatar Max Kellermann

util/UriExtract: use uri_get_scheme() in uri_has_scheme()

parent 05094726
......@@ -82,7 +82,7 @@ uri_after_scheme(const char *uri) noexcept
bool
uri_has_scheme(const char *uri) noexcept
{
return strstr(uri, "://") != nullptr;
return !uri_get_scheme(uri).IsNull();
}
StringView
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment