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 11704,"GZIP middleware consumes the HTTPResponse iterator, even if Content-Encoding is set to identity",teh,nobody,"There's a check like {{{ 22 if response.has_header('Content-Encoding'): 23 return response }}} in the gzip middleware, but it gets executed _after_ the following check {{{ if response.status_code != 200 or len(response.content) < 200: return response }}} The ""response.content"" consumes an iterator passed to HttpResponse, which breaks e.g. in case of generators.",,closed,Core (Other),1.1,,duplicate,"gzip, middleware",,Unreviewed,0,0,0,0,0,0