diff --git a/userspace/engine/falco_utils.cpp b/userspace/engine/falco_utils.cpp index 6c1f9bc3..49b05a69 100644 --- a/userspace/engine/falco_utils.cpp +++ b/userspace/engine/falco_utils.cpp @@ -75,7 +75,7 @@ void readfile(const std::string& filename, std::string& data) } namespace network { -bool is_unix_scheme(nonstd::string_view url) +bool is_unix_scheme(const std::string& url) { return url.starts_with(UNIX_SCHEME); } diff --git a/userspace/engine/falco_utils.h b/userspace/engine/falco_utils.h index 65b7980d..1619863e 100644 --- a/userspace/engine/falco_utils.h +++ b/userspace/engine/falco_utils.h @@ -49,7 +49,7 @@ uint32_t hardware_concurrency(); namespace network { static const std::string UNIX_SCHEME("unix://"); -bool is_unix_scheme(nonstd::string_view url); +bool is_unix_scheme(const std::string& url); } // namespace network } // namespace utils } // namespace falco