[issue14721] httplib doesn't specify content-length header for POST requests without data

Arve Knudsen report at bugs.python.org
Fri May 4 21:34:10 CEST 2012


Arve Knudsen <arve.knudsen at gmail.com> added the comment:

Here's my initial proposal for a patch against httplib, based on the 2.7 branch of cpython repository. I've included a couple of tests, which check that when content is empty, content-length is set to 0 for certain methods (POST/PUT etc) and not specified for others.

----------
keywords: +patch
Added file: http://bugs.python.org/file25456/httplib-2.7.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14721>
_______________________________________


More information about the Python-bugs-list mailing list