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

This commit is contained in:
Max Kellermann 2019-09-08 00:06:52 +02:00
parent 0509472636
commit 71448e645c
1 changed files with 1 additions and 1 deletions

View File

@ -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