util/IterableSplitString: return std::string_view

This commit is contained in:
Max Kellermann
2022-06-30 20:31:23 +02:00
parent ea3f044cd8
commit 02fe857755
2 changed files with 4 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ CurlEscapeUriPath(CURL *curl, std::string_view src) noexcept
std::string dest;
for (const auto i : IterableSplitString(src, '/')) {
CurlString escaped(curl_easy_escape(curl, i.data, i.size));
CurlString escaped(curl_easy_escape(curl, i.data(), i.size()));
if (!dest.empty())
dest.push_back('/');
dest += escaped.c_str();