-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Regarding the paramter disable_for
of AppAPIAuthMiddleware applied in
if not fnmatch.filter(self._disable_for, url_path): |
If you want to define a list of patterns of urls that should be ignored than you need to iterate over this list as the functions signature is
fnmatch.fnmatch(names, pattern)
(and not as one might expect
fnmatch.fnmatch(patterns, name)
see https://docs.python.org/3/library/fnmatch.html#fnmatch.filter)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working