FWIW, I've done some additional work to request/send in issue #12319 where I've added support for chunked request encoding.
@David
> if an iterable is passed in, it must be an iterable of bytes-like objects
This specific issue is addressed in the patch in #23350.
@Martin
> text files could also be handled more consistently by checking the read() return type
I wouldn't be opposed to this at all. In fact, I was going to initially make that change in #12319, but wanted to keep the change surface minimal and realistically, peeking at the data type rather than checking for 'b' in mode doesn't /really/ make that much of a difference. |