Refactor HttpResponse.__iter__ / _get_content
|Reported by:||Aymeric Augustin||Owned by:||Aymeric Augustin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
The current implementation isn't DRY. It seems to me that
_get_content should just return
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.