django1/django/middleware
Jay Cox eef95ea96f Fixed #24696 -- Made CSRF_COOKIE computation lazy.
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.
2015-05-02 19:45:14 -04:00
..
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
cache.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
clickjacking.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
common.py Fixed #24681 -- Removed Unicode bug in BrokenLinkEmailMiddleware 2015-04-21 22:02:04 +02:00
csrf.py Fixed #24696 -- Made CSRF_COOKIE computation lazy. 2015-05-02 19:45:14 -04:00
gzip.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
http.py Fixed #22440 -- Updated ConditionalGetMiddleware to comply with RFC 2616. 2014-06-13 20:01:35 -04:00
locale.py Fixed #19910 -- Added slash to i18n redirect if APPEND_SLASH is set. 2015-03-26 09:26:55 -04:00
security.py Fixed #17101 -- Integrated django-secure and added check --deploy option 2014-09-12 15:05:23 -04:00