Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
issue-68: replaces request path with the full path with request argum…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
lowitea committed Nov 18, 2020
1 parent a9fff2c commit 0381713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_stubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0381713

Please sign in to comment.