Christian Heimes <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue42417>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com