summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorPiotr Domanski <piotrjerzydomanski@gmail.com>2019-07-24 19:06:01 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-07-26 07:31:51 +0200
commit4b4e68a7a6847e8b449923bb882bed01f0d7b2a8 (patch)
treefc746fd29f3cdb19dcab18e0dc563c73f0c05531 /django
parent806ba19bbff311b7d567857ae61db6ff84af4a2c (diff)
Fixed #30567 -- Made WSGIHandler pass FileResponse.block_size to wsgi.file_wrapper.
Diffstat (limited to 'django')
-rw-r--r--django/core/handlers/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py
index 1bca717304..cb740e5c50 100644
--- a/django/core/handlers/wsgi.py
+++ b/django/core/handlers/wsgi.py
@@ -141,7 +141,7 @@ class WSGIHandler(base.BaseHandler):
]
start_response(status, response_headers)
if getattr(response, 'file_to_stream', None) is not None and environ.get('wsgi.file_wrapper'):
- response = environ['wsgi.file_wrapper'](response.file_to_stream)
+ response = environ['wsgi.file_wrapper'](response.file_to_stream, response.block_size)
return response