Use uri_has_scheme for Webdav response href
Use uri_has_scheme to find out if the href in Webdav responses is absolute to use the matching base path extraction. Signed-off-by: Vincent Petry <PVince81@yahoo.fr>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user