Refactor HttpResponse.__iter__ / _get_content
|Reported by:||aaugustin||Owned by:||aaugustin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by aaugustin)
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.
To sum up: this ticket is about cleaning up the conversion of HTTP response content to bytes.