Skip to content

Commit

Permalink
Ensure blueprint static requests are also exempt
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Aug 22, 2023
1 parent 53aa5c6 commit a8108d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_limiter/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def __check_all_limits_exempt(
return bool(
not endpoint
or not (self.enabled and self.initialized)
or endpoint == "static"
or endpoint.split(".")[-1] == "static"
or any(fn() for fn in self._request_filters)
)

Expand Down

0 comments on commit a8108d1

Please sign in to comment.