Skip to content

Commit

Permalink
fixes error that is interpreting every h request as api request
Browse files Browse the repository at this point in the history
  • Loading branch information
madoleary committed Jun 5, 2023
1 parent 6a0d3ba commit e4563ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h/security/policy/combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _call_sub_policies(self, method, request, *args, **kwargs):

@staticmethod
def _is_api_request(request):
return (request.path.startswith("/api") or request.path.startswith("/hypothesis")) and request.path not in [
return (request.path.startswith("/api") or request.path.startswith("/hypothesis/api")) and request.path not in [
"/api/token",
"/api/badge",
"/hypothesis/api/token",
Expand Down

0 comments on commit e4563ac

Please sign in to comment.