﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30567	Start passing FileResponse.block_size to wsgi.file_wrapper.	Chris Jerdonek	Piotr Domański	"I noticed that Django's `FileResponse` class has a `block_size` attribute which can be customized by subclassing: https://github.com/django/django/blob/415e899dc46c2f8d667ff11d3e54eff759eaded4/django/http/response.py#L393

but it's not passed to `wsgi.file_wrapper`. Only the `filelike` object is passed:

{{{
#!python
response = environ['wsgi.file_wrapper'](response.file_to_stream)
}}}

(from: https://github.com/django/django/blob/415e899dc46c2f8d667ff11d3e54eff759eaded4/django/core/handlers/wsgi.py#L144 )
"	Cleanup/optimization	closed	HTTP handling	dev	Normal	fixed	block_size,wsgi.file_wrapper,FileResponse,wsgi		Accepted	1	0	0	0	0	0
