diff --git a/silk/middleware.py b/silk/middleware.py index 8c86e527..a836e18f 100644 --- a/silk/middleware.py +++ b/silk/middleware.py @@ -50,7 +50,7 @@ def _should_intercept(request): except NoReverseMatch: silky = False - ignored = request.path in config.SILKY_IGNORE_PATHS + ignored = request.path_info in config.SILKY_IGNORE_PATHS return not (silky or ignored)