From 0381713542a5403934be0aa4c314ef90263ab20f Mon Sep 17 00:00:00 2001 From: lowit Date: Wed, 18 Nov 2020 17:25:07 +0300 Subject: [PATCH] issue-68: replaces request path with the full path with request arguments --- http_stubs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_stubs/views.py b/http_stubs/views.py index 3e22427..c374001 100644 --- a/http_stubs/views.py +++ b/http_stubs/views.py @@ -44,7 +44,7 @@ def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: :param kwargs: request kwargs :returns: http response """ - stub = self.find_stub(request.method, f'/{kwargs["path"]}') + stub = self.find_stub(request.method, request.get_full_path()) if not stub: return HttpResponseNotFound() LogEntry.objects.create(