This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jimr
Recipients demian.brecht, jimr, martin.panter
Date 2015-02-28.16:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Happy to remove OPTIONS from the list of methods that gets a content-length where body is None, but do we also want to consider behaviour if it's the empty string? My feeling is that '' implies "present but empty" (so should have a content-length set to zero), whereas None implies "missing" (so should only have a content-length header set to zero if the method is expecting a body.

I've updated the patch with this logic, including ensuring proper explicit test coverage for the cases described. Docs updated too.
Date User Action Args
2015-02-28 16:13:14jimrsetrecipients: + jimr, martin.panter, demian.brecht
2015-02-28 16:13:14jimrsetmessageid: <>
2015-02-28 16:13:14jimrlinkissue23539 messages
2015-02-28 16:13:14jimrcreate