Skip to content

Commit

Permalink
Fix issue with strip_prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BVMiko authored Aug 23, 2021
1 parent c8cf3ba commit a8857e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws_lambda_powertools/event_handler/api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ def _remove_prefix(self, path: str) -> str:
return path

for prefix in self._strip_prefixes:
if path == prefix:
return "/"
if self._path_starts_with(path, prefix):
return path[len(prefix) :]

Expand Down

0 comments on commit a8857e0

Please sign in to comment.