[issue3243] Support iterable bodies in httplib

Chris AtLee report at bugs.python.org
Fri Dec 5 17:43:45 CET 2008


Chris AtLee <chris at atlee.ca> added the comment:

The attached patch implements this for python 2.7.  It also adds support
for iterable bodies in urllib2, where it is more generally useful. 
urllib2 enforces the presence of a Content-Length header in the request
if the body is an iterable, whereas httplib does not.

The patch also includes updates to docs and tests (which all pass as of
r67584 on my macbook)

----------
keywords: +patch
Added file: http://bugs.python.org/file12241/python-3243.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3243>
_______________________________________


More information about the Python-bugs-list mailing list