TagAny: pass std::string_view to uri_has_scheme()
This commit is contained in:
parent
6239b6c0e2
commit
50a4d7169e
@ -135,7 +135,7 @@ TagScanDatabase(Client &client, const char *uri, TagHandler &handler)
|
||||
|
||||
{
|
||||
const auto absolute_uri = storage->MapUTF8(uri);
|
||||
if (uri_has_scheme(absolute_uri.c_str()))
|
||||
if (uri_has_scheme(absolute_uri))
|
||||
return TagScanStream(absolute_uri.c_str(), handler);
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ handle_getfingerprint(Client &client, Request args, Response &)
|
||||
lu.path = storage->MapFS(lu.canonical_uri);
|
||||
if (lu.path.IsNull()) {
|
||||
uri = storage->MapUTF8(lu.canonical_uri);
|
||||
if (!uri_has_scheme(uri.c_str()))
|
||||
if (!uri_has_scheme(uri))
|
||||
throw ProtocolError(ACK_ERROR_NO_EXIST, "No such song");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user