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 ludvig.ericson
Recipients ludvig.ericson
Date 2008-07-04.00:19:25
SpamBayes Score 0.038175292
Marked as misclassified No
Message-id <1215130769.47.0.0230905543783.issue3276@psf.upfronthosting.co.za>
In-reply-to
Content
Presently it's impossible to use httplib.HTTPConnection.request and send 
the several headers with the same name. This is because _send_request 
assumes a dict is passed in, or a dict-like interface. Obviously one could 
make a list subclass or some such and give it an iteritems that returns 
itself, but IMHO the solution is to fix httplib.

Attached patch changes the current behavior to using iteritems only if it 
exists, otherwise iterate directly (which would fit with sequences of two-
tuples).
History
Date User Action Args
2008-07-04 00:19:29ludvig.ericsonsetspambayes_score: 0.0381753 -> 0.038175292
recipients: + ludvig.ericson
2008-07-04 00:19:29ludvig.ericsonsetspambayes_score: 0.0381753 -> 0.0381753
messageid: <1215130769.47.0.0230905543783.issue3276@psf.upfronthosting.co.za>
2008-07-04 00:19:27ludvig.ericsonlinkissue3276 messages
2008-07-04 00:19:26ludvig.ericsoncreate