Skip to content

Commit e4563ac

Browse files
committed
fixes error that is interpreting every h request as api request
1 parent 6a0d3ba commit e4563ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h/security/policy/combined.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _call_sub_policies(self, method, request, *args, **kwargs):
8888

8989
@staticmethod
9090
def _is_api_request(request):
91-
return (request.path.startswith("/api") or request.path.startswith("/hypothesis")) and request.path not in [
91+
return (request.path.startswith("/api") or request.path.startswith("/hypothesis/api")) and request.path not in [
9292
"/api/token",
9393
"/api/badge",
9494
"/hypothesis/api/token",

0 commit comments

Comments
 (0)