fix: handle multiple handlers + see desc
change break -> continue to not 404 when the first hander doesn't match
This commit is contained in:
parent
545e9bdabe
commit
c5e8c151ce
1 changed files with 2 additions and 2 deletions
|
@ -100,14 +100,14 @@ impl Handlers {
|
|||
continue;
|
||||
}
|
||||
|
||||
break 'matching_loop;
|
||||
continue 'matching_loop;
|
||||
}
|
||||
|
||||
if url_segment == path_segment {
|
||||
continue;
|
||||
}
|
||||
|
||||
break 'matching_loop;
|
||||
continue 'matching_loop;
|
||||
}
|
||||
|
||||
return Some(handler);
|
||||
|
|
Loading…
Reference in a new issue