Author jimr
Recipients Arve.Knudsen, eric.araujo, ezio.melotti, jcea, jimr, orsenthil, piotr.dobrogost, python-dev
Date 2015-02-25.16:59:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424883558.36.0.261032802707.issue14721@psf.upfronthosting.co.za>
In-reply-to
Content
The fix for this still doesn't set Content-Length to zero when body is None, but I don't see any reason why this should be the case. For example, the following snippet would work for any 'empty' body:

if 'content-length' not in header_names:
    self._set_content_length(body if body is not None else '')

I'm happy to produce a patch if there's any chance it would be merged.
History
Date User Action Args
2015-02-25 16:59:18jimrsetrecipients: + jimr, jcea, orsenthil, ezio.melotti, eric.araujo, Arve.Knudsen, python-dev, piotr.dobrogost
2015-02-25 16:59:18jimrsetmessageid: <1424883558.36.0.261032802707.issue14721@psf.upfronthosting.co.za>
2015-02-25 16:59:18jimrlinkissue14721 messages
2015-02-25 16:59:18jimrcreate