Martin Panter added the comment:

[Edit Error: 'utf8' codec can't decode byte 0xe2 in position 207: invalid 
continuation byte]

The documentation currently says “Content-Length header should be explicitly 
provided when the body is an iterable”. See Lib/urllib/request.py:1133 for how 
it is done for urlopen(), using memoryview(), which is probabaly more correct.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to