Staging
v0.5.1
https://github.com/python/cpython
Revision beed8402ca2b44681f939238c8ea02deeb8a06a2 authored by R David Murray on 22 March 2015, 19:18:23 UTC, committed by R David Murray on 22 March 2015, 19:18:23 UTC
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.

Patch by James Rutherford, with additional cleaning up of the
'request' documentation by me.
1 parent 75ed90a
History
Tip revision: beed8402ca2b44681f939238c8ea02deeb8a06a2 authored by R David Murray on 22 March 2015, 19:18:23 UTC
#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
Tip revision: beed840

README

back to top