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 18796,Refactor HttpResponse.__iter__ / _get_content,Aymeric Augustin,Aymeric Augustin,"The current implementation isn't DRY. It seems to me that `_get_content` should just return `b''.join(self)`. Unfortunately, implementing this naively results in test failures. This code is sensitive, tricky, and lacks comment. A refactoring would be useful. See also #4969, #16494, #18764, [5f2d9cdbb1], [2892cb0ec4], and [536b030363]. '''To sum up: this ticket is about cleaning up the conversion of HTTP response content to bytes.'''",Cleanup/optimization,closed,HTTP handling,dev,Normal,fixed,,,Unreviewed,0,0,0,0,0,0