diff options
Diffstat (limited to 'icespider/testing/testRequest.cpp')
-rw-r--r-- | icespider/testing/testRequest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/icespider/testing/testRequest.cpp b/icespider/testing/testRequest.cpp index b866308..080c07e 100644 --- a/icespider/testing/testRequest.cpp +++ b/icespider/testing/testRequest.cpp @@ -4,6 +4,7 @@ #include <formatters.h> namespace IceSpider { + constexpr std::string_view slash("/"); TestRequest::TestRequest(const Core * c, HttpMethod m, const std::string_view & p) : IHttpRequest(c), method(m) @@ -13,7 +14,7 @@ namespace IceSpider { // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) if (!path.empty()) { // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) - ba::split(url, path, ba::is_any_of("/"), ba::token_compress_off); + ba::split(url, path, ba::is_any_of(slash), ba::token_compress_off); } } |