Skip to content

Commit

Permalink
Merge pull request #14 from jwaschkau/django-unpoly-13
Browse files Browse the repository at this point in the history
django-unpoly-13 TypeError: _handle_redirect_headers() takes 2 positi…
  • Loading branch information
jwaschkau committed Sep 29, 2021
2 parents ddd3668 + 3b13530 commit d08ab71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_unpoly/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ def __call__(self, request):
response[header] = value
if response.status_code >= 300 and response.status_code < 400:
# If this is a redirect add the Unpoly headers
response = self._handle_redirect_headers(request, response)
response = self._handle_redirect_headers(response)

return response

0 comments on commit d08ab71

Please sign in to comment.