Message 239684 - Python tracker (original) (raw)
I think we should avoid mentioning bytes-like objects until Issue 23740 (http.client support), Issue 23756 (clarify definition), and/or SSLSocket.sendall() support are sorted out.
Changes in non-urlencoded.3.patch:
- Removed iterable object as direct urlopen() argument, since that would require a custom Content-Length and therefore a custom Request object
- Removed Content-Type discussion from urlopen() for similar reasons
- Added iterable object to Request constructor (already tested)
- Clarified default Content-Type whenever data is not None
- Added a test for default Content-Type with iterable object