<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/middleware/common.py, branch stable/4.2.x</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=stable%2F4.2.x</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=stable%2F4.2.x'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2022-06-02T13:15:04Z</updated>
<entry>
<title>Fixed #33700 -- Skipped extra resolution for successful requests not ending with /.</title>
<updated>2022-06-02T13:15:04Z</updated>
<author>
<name>Anders Kaseorg</name>
<email>andersk@mit.edu</email>
</author>
<published>2022-06-02T10:34:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=fbac2a4dd846b52c4f379eacb5bab654fe9540cc'/>
<id>urn:sha1:fbac2a4dd846b52c4f379eacb5bab654fe9540cc</id>
<content type='text'>
By moving a should_redirect_with_slash call out of an if block, commit
9390da7fb6e251eaa9a785692f987296cb14523f negated the performance fix
of commit 434d309ef6dbecbfd2b322d3a1da78aa5cb05fa8 (#24720).
Meanwhile, the logging issue #26293 that it targeted was subsequently
fixed more fully by commit 40b69607c751c4afa453edfd41d2ed155e58187e
(#26504), so it is no longer needed.  This effectively reverts it.

This speeds up successful requests not ending with / when APPEND_SLASH
is enabled (the default, and still useful in projects with a mix of
URLs with and without trailing /).  The amount of speedup varies from
about 5% in a typical project to nearly 50% on a benchmark with many
routes.

Signed-off-by: Anders Kaseorg &lt;andersk@mit.edu&gt;
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Made small readability improvements.</title>
<updated>2020-10-28T19:20:20Z</updated>
<author>
<name>Martin Thoma</name>
<email>info@martin-thoma.de</email>
</author>
<published>2020-09-24T16:37:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=302caa40e4caab7d95ef7d0a88a90f935039ab09'/>
<id>urn:sha1:302caa40e4caab7d95ef7d0a88a90f935039ab09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior.</title>
<updated>2020-10-22T12:15:19Z</updated>
<author>
<name>Carlton Gibson</name>
<email>carlton.gibson@noumenal.es</email>
</author>
<published>2020-10-20T07:14:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ad11f5b8c9cbfdb763e08c83170694abc0c5fc1e'/>
<id>urn:sha1:ad11f5b8c9cbfdb763e08c83170694abc0c5fc1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31789 -- Added a new headers interface to HttpResponse.</title>
<updated>2020-09-14T06:41:59Z</updated>
<author>
<name>Tom Carrick</name>
<email>tom@carrick.eu</email>
</author>
<published>2020-07-14T11:32:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=bcc2befd0e9c1885e45b46d0b0bcdc11def8b249'/>
<id>urn:sha1:bcc2befd0e9c1885e45b46d0b0bcdc11def8b249</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Optimized CommonMiddleware's check for DISALLOWED_USER_AGENTS.</title>
<updated>2019-03-30T13:02:57Z</updated>
<author>
<name>Brad</name>
<email>brad.solomon.1124@gmail.com</email>
</author>
<published>2019-03-30T13:02:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ad72895c60b4bc217fcd03108bed32587d561d0c'/>
<id>urn:sha1:ad72895c60b4bc217fcd03108bed32587d561d0c</id>
<content type='text'>
Avoided getattribute + getitem for each DISALLOWED_USER_AGENTS.</content>
</entry>
<entry>
<title>Fixed CVE-2018-14574 -- Fixed open redirect possibility in CommonMiddleware.</title>
<updated>2018-08-01T13:28:42Z</updated>
<author>
<name>Andreas Hug</name>
<email>andreas.hug@moccu.com</email>
</author>
<published>2018-07-24T20:18:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=a656a681272f8f3734b6eb38e9a88aa0d91806f1'/>
<id>urn:sha1:a656a681272f8f3734b6eb38e9a88aa0d91806f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed hanging indentation in various code.</title>
<updated>2018-03-16T09:54:34Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2018-03-16T09:54:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=362813d6287925b8f63f0b107c55a74d95f5825e'/>
<id>urn:sha1:362813d6287925b8f63f0b107c55a74d95f5825e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #26447 -- Removed outdated ETag comment in CommonMiddleware.</title>
<updated>2017-11-12T01:45:17Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2017-11-12T01:45:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=8f8a4d10d34c1fd6104b08efd16c5c377c142865'/>
<id>urn:sha1:8f8a4d10d34c1fd6104b08efd16c5c377c142865</id>
<content type='text'>
Follow up to 48d57788ee56811fa77cd37b9edf40535f82d87e.
</content>
</entry>
<entry>
<title>Refs #26447 -- Removed the USE_ETAGS setting per deprecation timeline.</title>
<updated>2017-09-22T16:51:18Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2017-09-03T01:09:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=48d57788ee56811fa77cd37b9edf40535f82d87e'/>
<id>urn:sha1:48d57788ee56811fa77cd37b9edf40535f82d87e</id>
<content type='text'>
</content>
</entry>
</feed>
