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 berker.peksag, demian.brecht, martin.panter, orsenthil, serhiy.storchaka
Date 2015-03-21.23:05:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426979146.24.0.077707886666.issue23350@psf.upfronthosting.co.za>
In-reply-to
Content
Technically I don’t think there is a bug. The documentation says [the] “Content-Length header should be explicitly provided”, so if you don’t set it you could argue that you’re using the library wrong.

For this issue I think Demian was trying to add support (i.e. new feature) for implicit Content-Length with tuples and lists of bytes (or strings). He has also added support for iterables of Latin-1 encodable text strings.

What you are suggesting Serhiy sounds like a separate new feature to support bodies of arbitrary bytes-like objects (or lists or tuples of them). According to the documentation, only byte and Latin-1 text strings, file objects supporting stat(), and iterables are currently supported. It does not say, but before this patch I think the iterables had to be of bytes-like objects.
History
Date User Action Args
2015-03-21 23:05:46martin.pantersetrecipients: + martin.panter, orsenthil, berker.peksag, serhiy.storchaka, demian.brecht
2015-03-21 23:05:46martin.pantersetmessageid: <1426979146.24.0.077707886666.issue23350@psf.upfronthosting.co.za>
2015-03-21 23:05:46martin.panterlinkissue23350 messages
2015-03-21 23:05:46martin.pantercreate