fixed incorrect limit in strsplit

This commit is contained in:
orignal committed 2025-06-03 07:58:31 -04:00
1 parent 2631255b46
commit 6ad6a2501e
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ namespace http
static void strsplit(std::string_view line, std::vector<std::string_view> &tokens, char delim, std::size_t limit = 0)
{
size_t count = 0, pos;
size_t count = 1, pos;
while ((pos = line.find (delim)) != line.npos)
{
count++;