1
0
mirror of https://github.com/django/django.git synced 2024-11-18 15:34:16 +00:00
django/tests/test_client_regress
wrwrwr 056a3c6c37 Fixed #23682 -- Enhanced circular redirects detection in tests.
When the test client detects a redirect to a URL seen in the
currently followed chain it will now raise a RedirectCycleError
instead of just returning the first repeated response.

It will also complain when a single chain of redirects is longer
than 20, as this often means a redirect loop with varying URLs,
and even if it's not actually one, such long chains are likely
to be treated as loops by browsers.

Thanks Preston Timmons, Berker Peksag, and Tim Graham for reviews.
2014-11-25 10:12:28 -05:00
..
bad_templates
fixtures
templates
__init__.py
auth_backends.py Fixed #22771 -- Fixed test.Client.logout when using custom auth backend. 2014-06-13 13:03:58 -04:00
context_processors.py Simplified caching of template context processors. 2014-11-19 21:35:39 +01:00
models.py
session.py
tests.py Fixed #23682 -- Enhanced circular redirects detection in tests. 2014-11-25 10:12:28 -05:00
urls.py Fixed #23682 -- Enhanced circular redirects detection in tests. 2014-11-25 10:12:28 -05:00
views.py Fixed #23682 -- Enhanced circular redirects detection in tests. 2014-11-25 10:12:28 -05:00