• wrwrwr's avatar
    Fixed #23682 -- Enhanced circular redirects detection in tests. · 056a3c6c
    wrwrwr yazdı
    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.
    056a3c6c
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...