7 Jan
2016
7 Jan
'16
4:46 p.m.
On 7 Jan 2016, at 16:32, Guido van Rossum
wrote: Personally I'm perplexed that Requests, which claims to be "HTTP for Humans" doesn't take care of this but just lets http/client.py blow up. (However, IIUC both 2838 and 1822 are about the body.encode() call in Python 3's http/client.py at _send_request(). 1926 seems to originate in Requests itself; it's also Python 2.7.)
The main reason is historical: this was missed in the original (substantial) rewrite in requests 2.0, and as a result we can’t change it without a backward compat break, just the same as Python. We’ll probably fix it in 3.0. Cory