| Age | Commit message (Collapse) | Author |
|
middleware classes.
Per deprecation timeline.
|
|
|
|
|
|
|
|
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.
|
|
comments.
|
|
Ensured process_view() always accesses the CSRF token from the session
or cookie, rather than the request, as rotate_token() may have been called
by an authentication middleware during the process_request() phase.
|
|
|
|
classes.
This is the new contract since middleware refactoring in Django 1.10.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
Cache-Control directive.
|
|
|
|
|
|
Thanks to James Bennett for the initial implementation.
|
|
|
|
|
|
Avoided getattribute + getitem for each DISALLOWED_USER_AGENTS.
|
|
Used more specific errors (e.g. FileExistsError) as appropriate.
|
|
(No behavior change since HTTP headers are case insensitive.)
|
|
|
|
|
|
* Added logging of 500 responses for instantiated responses.
* Added logging of all 4xx and 5xx responses.
|
|
Thanks Alex Gaynor for contributing to the patch.
|
|
|
|
an invalid host.
|
|
"Cache-Control: private".
|
|
|
|
|
|
Follow up to 48d57788ee56811fa77cd37b9edf40535f82d87e.
|
|
|
|
Regression in eef95ea96faef0b7dbbe0c8092202b74f68a899b.
|
|
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
Major thanks to Shai for helping to refactor the tests, and to
Shai, Tim, Florian, and others for extensive and helpful review.
|
|
prefix_default_language=False.
|
|
trailing slash.
|
|
ConditionalGetMiddleware.
|
|
|
|
|
|
Django's conditional request processing can now produce 304 Not Modified
responses for content that is subject to compression.
|
|
ConditionalGetMiddleware.
|
|
Not Modified" responses.
|
|
|
|
|
|
has Cache-Control: no-store.
|
|
Thanks Tim Graham for the review.
|
|
exception handling.
|
|
|