This would also handle the issue of checking redirects to external sites
without having to go hunting for `headers['Location']`.
--
Ticket URL: <https://code.djangoproject.com/ticket/20919>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I've also wished for this.
--
Ticket URL: <https://code.djangoproject.com/ticket/20919#comment:1>
* owner: nobody => jcatalan
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/20919#comment:2>
Comment (by jcatalan):
I also wanted this once, so I think it would be a useful thing to have.
I've submitted this [https://github.com/django/django/pull/1598 PR] with a
patch. Please, let me know what do you think!
--
Ticket URL: <https://code.djangoproject.com/ticket/20919#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/20919#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"4840fd9cbc3987781f7e6fab2520c9bd42aec057"]:
{{{
#!CommitTicketReference repository=""
revision="4840fd9cbc3987781f7e6fab2520c9bd42aec057"
Fixed #20919 -- Extended assertRedirects to be able to avoid fetching
redirect's response.
Thanks mjtamlyn for the suggestion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20919#comment:5>