Changes between Initial Version and Version 1 of Ticket #27606
- Timestamp:
- Dec 15, 2016, 9:11:59 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27606 – Description
initial v1 1 When initializing an HttpResponseRedirect with a redirect url that does not match the `allowed_schemes` attribute, the DisallowedRedirect exception is raised before ` `super(HttpResponseRedirectBase, self).__init__(*args, **kwargs)`` is called, which sets `self._headers`.1 When initializing an HttpResponseRedirect with a redirect url that does not match the `allowed_schemes` attribute, the DisallowedRedirect exception is raised before `super(HttpResponseRedirectBase, self).__init__(*args, **kwargs)` is called, which sets `self._headers`. 2 2 3 3 This causes repr()ing/printing the response to error out with AttributeError: 'HttpResponseRedirect' object has no attribute '_headers'.