django1/django/middleware
Kevin Michel 3a42c0447b [3.1.x] Fixed #31928 -- Fixed detecting an async get_response in various middlewares.
SecurityMiddleware and the three cache middlewares were not calling
super().__init__() during their initialization or calling the required
MiddlewareMixin._async_check() method.

This made the middlewares not properly present as coroutine and
confused the middleware chain when used in a fully async context.

Thanks Kordian Kowalski for the report.

Backport of 825ce75fae from master
2020-08-28 12:35:53 +02:00
..
__init__.py
cache.py [3.1.x] Fixed #31928 -- Fixed detecting an async get_response in various middlewares. 2020-08-28 12:35:53 +02:00
clickjacking.py Fixed #30426 -- Changed X_FRAME_OPTIONS setting default to DENY. 2019-09-09 08:15:26 +02:00
common.py Optimized CommonMiddleware's check for DISALLOWED_USER_AGENTS. 2019-03-30 09:02:57 -04:00
csrf.py Fixed #28699 -- Fixed CSRF validation with remote user middleware. 2020-02-26 17:25:20 +01:00
gzip.py Fixed #30899 -- Lazily compiled import time regular expressions. 2019-10-29 09:22:26 +01:00
http.py Fixed #28982 -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
locale.py Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments. 2020-05-04 12:10:47 +02:00
security.py [3.1.x] Fixed #31928 -- Fixed detecting an async get_response in various middlewares. 2020-08-28 12:35:53 +02:00