forked from cory/tildefriends
Fix /speedscope/ => deps/speedscope/index.html.
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user