| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-02-09 | Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode(). | Tim Graham | |
| 2017-02-01 | Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments. | Vytis Banaitis | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-20 | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-11-06 | Fixed #26812 -- Fixed APPEND_SLASH on a URL including querystring with a ↵ | Sven Engström | |
| trailing slash. | |||
| 2016-11-05 | Fixed #27346 -- Stopped setting the Content-Length header in ↵ | Adam Malinowski | |
| ConditionalGetMiddleware. | |||
| 2016-10-17 | Fixed #27344 -- Made ConditionalGetMiddleware only process GET requests. | Kevin Christopher Henry | |
| 2016-10-14 | Fixed #27345 -- Stopped setting the Date header in ConditionalGetMiddleware. | Tim Graham | |
| 2016-10-14 | Refs #19705 -- Changed gzip modification times to 0. | Kevin Christopher Henry | |
| This makes gzip output deterministic, which allows ConditionalGetMiddleware to reliably compare ETags on gzipped content (views using the gzip_page() decorator in particular). | |||
| 2016-10-13 | Refs #19705 -- Made GZipMiddleware make ETags weak. | Kevin Christopher Henry | |
| Django's conditional request processing can now produce 304 Not Modified responses for content that is subject to compression. | |||
| 2016-10-12 | Fixed #19705 -- Set proper headers on conditional Not Modified responses. | Kevin Christopher Henry | |
| 2016-10-10 | Fixed #26447 -- Deprecated settings.USE_ETAGS in favor of ↵ | Denis Cornehl | |
| ConditionalGetMiddleware. | |||
| 2016-09-10 | Fixed #27083 -- Added support for weak ETags. | Kevin Christopher Henry | |
| 2016-08-10 | Fixed #26947 -- Added an option to enable the HSTS header preload directive. | Ed Morley | |
| 2016-08-08 | Fixed docs to refer to HSTS includeSubdomains as a directive. | Ed Morley | |
| The spec refers to it as a 'directive' rather than a 'tag': https://tools.ietf.org/html/rfc6797#section-6.1.2 | |||
| 2016-07-28 | Fixed a typo in tests/middleware/test_security.py | Tim Graham | |
| 2016-07-15 | Fixed #26765 -- Made CommonMiddleware no longer set an ETag when response ↵ | andrewnester | |
| has Cache-Control: no-store. | |||
| 2016-06-27 | Fixed #5897 -- Added the Content-Length response header in CommonMiddleware | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2016-06-16 | Fixed #26747 -- Used more specific assertions in the Django test suite. | Jon Dufresne | |
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-03-23 | Fixed #26293 -- Fixed CommonMiddleware to process PREPEND_WWW and ↵ | ieatkittens | |
| APPEND_SLASH independently. | |||
| 2016-03-08 | Fixed #25971 -- Made BrokenLinkEmailsMiddleware ignore APPEND_SLASH redirects. | harikrishnakanchi | |
| If APPEND_SLASH=True and the referer is the URL without a trailing '/', then BrokenLinkEmailsMiddleware shouldn't send an email. | |||
| 2016-02-05 | Fixed #26176 -- Fixed E123 flake8 warnings. | Tim Graham | |
| 2016-01-25 | Fixed #26125 -- Fixed E731 flake warnings. | userimack | |
| 2016-01-05 | Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag support. | Denis Cornehl | |
| Thanks Denis Cornehl for help with the patch. | |||
| 2015-12-31 | Made cosmetic cleanups in middleware tests. | Tim Graham | |
| 2015-12-10 | Fixed #25900 -- Fixed regression in CommonMiddleware ETag support. | Derek J. Curtis | |
| 2015-12-10 | Moved a few CommonMiddleware tests to the correct test class. | Tim Graham | |
| 2015-12-03 | Fixed many spelling mistakes in code, comments, and docs. | Josh Soref | |
| 2015-11-26 | Fixed #25302 (again) -- Ignored scheme when checking for bad referers. | Aymeric Augustin | |
| The check introduced in 4ce433e was too strict in real life. The poorly implemented bots this patch attempted to ignore are sloppy when it comes to http vs. https. | |||
| 2015-10-22 | Fixed "URLconf" spelling in code comments. | Tim Graham | |
| 2015-08-24 | Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s ↵ | Maxime Lorant | |
| when Referer = URL. | |||
| 2015-07-31 | Fixed #24720 -- Avoided resolving URLs that don't end in a slash twice in ↵ | Jay Cox | |
| CommonMiddleware. This speeds up affected requests by about 5%. | |||
| 2015-07-06 | Fixed some unclosed objects in tests | Andriy Sokolovskiy | |
| 2015-06-27 | Removed unused code after refs #25017. | Tim Graham | |
| 2015-06-27 | Fixed #25017 -- Allowed customizing the DISALLOWED_USER_AGENTS response | sujayskumar | |
| 2015-05-20 | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | |
| 2015-04-21 | Fixed #24681 -- Removed Unicode bug in BrokenLinkEmailMiddleware | Oliver A Bristow | |
| 2015-03-26 | Rephrased docstrings to assertions and added querystring test. | Bas Peschier | |
| 2015-03-18 | Fixed #23960 -- Removed http.fix_location_header | Claude Paroz | |
| Thanks Carl Meyer for the report and Tim Graham for the review. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-02-03 | Fixed #24149 -- Normalized tuple settings to lists. | darkryder | |
| 2015-02-03 | Fixed #24240 -- Allowed GZipping a Unicode StreamingHttpResponse | Matthew Somerville | |
| make_bytes() assumed that if the Content-Encoding header is set, then everything had already been dealt with bytes-wise, but in a streaming situation this was not necessarily the case. make_bytes() is only called when necessary when working with a StreamingHttpResponse iterable, but by that point the middleware has added the Content-Encoding header and thus make_bytes() tried to call bytes(value) (and dies). If it had been a normal HttpResponse, make_bytes() would have been called when the content was set, well before the middleware set the Content-Encoding header. This commit removes the special casing when Content-Encoding is set, allowing unicode strings to be encoded during the iteration before they are e.g. gzipped. This behaviour was added a long time ago for #4969 and it doesn't appear to be necessary any more, as everything is correctly made into bytes at the appropriate places. Two new tests, to show that supplying non-ASCII characters to a StreamingHttpResponse works fine normally, and when passed through the GZip middleware (the latter dies without the change to make_bytes()). Removes the test with a nonsense Content-Encoding and Unicode input - if this were to happen, it can still be encoded as bytes fine. | |||
| 2015-01-29 | Fixed #24145 -- Added PUT & PATCH to CommonMiddleware APPEND_SLASH redirect ↵ | Samuel Colvin | |
| error. | |||
| 2015-01-05 | Fixed #24072 -- Added FileResponse for streaming binary files. | Collin Anderson | |
| 2014-12-29 | Converted middleware tests to use RequestFactory. | Berker Peksag | |
