Fix /speedscope/ => deps/speedscope/index.html.

This commit is contained in:
2024-05-08 20:57:53 -04:00
parent ba6da856bb
commit 5ca5323782
2 changed files with 17 additions and 3 deletions

View File

@ -147,12 +147,17 @@ static bool _http_pattern_matches(const char* pattern, const char* path, bool is
if (pattern[i] == '*')
{
for (; path[j]; j++)
while (true)
{
if (_http_pattern_matches(pattern + i + 1, path + j, strchr(pattern + i + 1, '*') != NULL))
{
return true;
}
if (!path[j])
{
break;
}
j++;
}
}
return !pattern[i] && !path[j];