Merge branch 'v0.22.x'

This commit is contained in:
Max Kellermann
2021-01-05 13:11:29 +01:00
4 changed files with 49 additions and 18 deletions

View File

@@ -85,7 +85,7 @@ uri_after_scheme(std::string_view uri) noexcept
}
bool
uri_has_scheme(const char *uri) noexcept
uri_has_scheme(std::string_view uri) noexcept
{
return !uri_get_scheme(uri).empty();
}

View File

@@ -40,7 +40,7 @@
*/
gcc_pure
bool
uri_has_scheme(const char *uri) noexcept;
uri_has_scheme(std::string_view uri) noexcept;
/**
* Returns the scheme name of the specified URI, or an empty string.