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 martin.panter
Recipients demian.brecht, jimr, martin.panter
Date 2015-02-27.21:47:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425073660.16.0.160942093155.issue23539@psf.upfronthosting.co.za>
In-reply-to
Content
I like Demian’s “expecting_len” technique slightly better because it would avoid calling None.fileno() and len(None), as Demian just said.

Also, I think OPTIONS should be removed from the list of methods that enforce a Content-Length. I wouldn’t normally expect any payload for OPTIONS, since RFC 7231 explicitly says it does not define a use for a payload, but requires a Content-Type if a payload is sent.
History
Date User Action Args
2015-02-27 21:47:40martin.pantersetrecipients: + martin.panter, demian.brecht, jimr
2015-02-27 21:47:40martin.pantersetmessageid: <1425073660.16.0.160942093155.issue23539@psf.upfronthosting.co.za>
2015-02-27 21:47:40martin.panterlinkissue23539 messages
2015-02-27 21:47:40martin.pantercreate