[3.0.x] Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used.

Thanks to Oskar Persson for the report.

Backport of 41a3b3d186 from master
This commit is contained in:
Florian Apolloner 2020-02-07 12:55:59 +01:00 committed by Mariusz Felisiak
parent 22c25bea54
commit 4e8d6a1baf
7 changed files with 63 additions and 6 deletions

View file

@ -11,3 +11,6 @@ Bugfixes
* Fixed a data loss possibility when using caching from async code
(:ticket:`31253`).
* Fixed a regression in Django 3.0 that caused a file response using a
temporary file to be closed incorrectly (:ticket:`31240`).