Skip to content

Commit

Permalink
Update django_unpoly/middleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaschkau committed Aug 4, 2021
1 parent edc8f54 commit f4b6031
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 @@ -23,7 +23,7 @@ def _handle_redirect_headers(self, response: HttpResponseBase):
"""
if not hasattr(response, 'url'):
# Some responses do not have a url e.g. HttpResponseNotModified
return
return response
response['X-Up-Location'] = response.url # Report the original url to Unpoly
params = {}
for header, value in self._get_up_headers(response):
Expand Down

0 comments on commit f4b6031

Please sign in to comment.