• Jay Cox's avatar
    Fixed #24696 -- Made CSRF_COOKIE computation lazy. · eef95ea9
    Jay Cox yazdı
    Only compute the CSRF_COOKIE when it is actually used. This is a
    significant speedup for clients not using cookies.
    
    Changed result of the “test_token_node_no_csrf_cookie” test:  It gets
    a valid CSRF token now which seems like the correct behavior.
    
    Changed auth_tests.test_views.LoginTest.test_login_csrf_rotate to
    use get_token() to trigger CSRF cookie inclusion instead of changing
    request.META["CSRF_COOKIE_USED"] directly.
    eef95ea9
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...