Skip to content

Commit ee67bdb

Browse files
committed
_Route now respects "/" suffix of path
1 parent ffa62d9 commit ee67bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_httpserver/route.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def match(self, other: "_Route") -> Tuple[bool, List[str]]:
6666
if not self._contains_parameters:
6767
return self.path == other.path, []
6868

69-
regex_match = re.match(self.path, other.path)
69+
regex_match = re.match(f"^{self.path}$", other.path)
7070
if regex_match is None:
7171
return False, []
7272

0 commit comments

Comments
 (0)