Message236600
| 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. |
|