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 cwells
Recipients cwells
Date 2010-10-01.23:44:06
SpamBayes Score 6.326953e-07
Marked as misclassified No
Message-id <1285976648.58.0.0752019030242.issue10012@psf.upfronthosting.co.za>
In-reply-to
Content
httplib.py ~Line 924

    def putheader(self, header, *values):
        str = '%s: %s' % (header, '\r\n\t'.join(values))
        self._output(str)


should be changed to something like:


    def putheader(self, header, *values):
        ...
        s = '%s: %s' % (header, '\r\n\t'.join([str(v) for v in values]))
        self._output(s)

The current version shadows str builtin with a local variable.  join method assumes strings so they should probably be explicitly cast (at least one 3rd party library appears to pass Content-length as an integer, causing this to fail.  Of course, this can't be done unless the str builtin is no longer shadowed.
History
Date User Action Args
2010-10-01 23:44:08cwellssetrecipients: + cwells
2010-10-01 23:44:08cwellssetmessageid: <1285976648.58.0.0752019030242.issue10012@psf.upfronthosting.co.za>
2010-10-01 23:44:07cwellslinkissue10012 messages
2010-10-01 23:44:07cwellscreate