]> granicus.if.org Git - python/commit
#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
authorR David Murray <rdmurray@bitdance.com>
Sun, 22 Mar 2015 19:15:44 +0000 (15:15 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sun, 22 Mar 2015 19:15:44 +0000 (15:15 -0400)
commitb4b000f0022ed61fdd1dbf92929da61c06f3447c
tree0082be08e63c032d00ba49f235471b0c277bf061
parent29368584d295aed3ec198c158f6503f370492c03
#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.

Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.

Patch by James Rutherford.
Doc/library/httplib.rst
Lib/httplib.py
Lib/test/test_httplib.py
Misc/ACKS
Misc/NEWS