mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.7.x] Fixed #24193 -- Prevented unclosed file warnings in static.serve()
This regression was caused by 818e59a3f0. The patch is a partial
backport of the new FileResponse class available in later Django
versions.
Thanks Raphaël Hertzog for the report, and Tim Graham and Collin
Anderson for the reviews.
This commit is contained in:
@@ -17,3 +17,6 @@ Bugfixes
|
||||
|
||||
* Fixed a migration crash on MySQL when migrating from a ``OneToOneField`` to a
|
||||
``ForeignKey`` (:ticket:`24163`).
|
||||
|
||||
* Prevented the ``static.serve`` view from producing ``ResourceWarning``\s in
|
||||
certain circumstances (security fix regression, :ticket:`24193`).
|
||||
|
||||
Reference in New Issue
Block a user