Christian Heimes <li...@cheimes.de> added the comment:

I also noticed that you are passing an explicit content length. 
{'Content-Length' : '0'} is wrong for a POST payload of "{}" with standard 
transfer encoding. It should be len("{}") == 2.

A zero content length only valid for chunked transfer encoding, which either 
requires header {"transfer-encoding": "chunked"} or encode_chunked=True.

----------

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

Reply via email to