﻿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
15066	GzipMiddleware does not work with generator-created responses	Andreas Sommer <AndiDog@…>	nobody	"With a response like

{{{
def gen():
    yield ""something""
return HttpResponse(gen())
}}}

and a HTTP 200 status code, the `GzipMiddleware` will always return an empty response because it accesses the `response.content` property twice. That means the `_get_content` getter applies `''.join` twice to the generator, but a generator can only be iterated once.

See patch proposal."		closed	Uncategorized	dev		duplicate	gzip		Unreviewed	1	0	0	0	0	0
