SilentGhost added the comment: Here is the updated patch. I only included the additional fix for read1 since readlines is not overwritten in the HTTPConnection. Not sure how to write test for it, does it need a much longer body (compared to the one in tests) to produce this behaviour?
The larger refactoring might be appropriate for 3.6, but I believe these smaller fixed could go into the next micro release. ---------- Added file: http://bugs.python.org/file42097/issue26499_2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26499> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com