Message598

Author tseaver
Recipients pje, tseaver
Date 2011-03-23.14:12:51
Content
Some servers (e.g., wwwsearch.sourceforge.net) apparently send multiple
'Content-Length' headers, which causes setuptools to barf trying to convert
a '<length>, <length>' string to an integer.

This bug breaks installing 'mechanize', which lists wwwsearch.sourceforge.net
as its Download-URL, and therefore causes a bunch of Zope-related tests to fail
(e.g., https://mail.zope.org/pipermail/cmf-tests/2011-March/014576.html ).

The attached patch uses 'headers.getheaders('Content-Length')[0] to use only
the first value found.
Files
File name Uploaded
setuptools-multi_content_length.patch tseaver, 2011-03-23.14:12:51
History
Date User Action Args
2011-03-23 14:12:52tseaversetmessageid: <1300889572.25.0.438921081513.issue123@psf.upfronthosting.co.za>
2011-03-23 14:12:52tseaversetrecipients: + tseaver, pje
2011-03-23 14:12:52tseaverlinkissue123 messages
2011-03-23 14:12:51tseavercreate