[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Indeed, as Terry wrote the assumption is that header is a mapping (not necessarily a dict). It is not hard to implement a Multimap that has this API: import collections.abc class Multimap(collections.abc.Mapping): def __init__(self): self.data = co

[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2011-12-04 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a feature request for now old versions. It would have to be reformulated as a feature request for a 3.2 module. I do not see the dict (mapping now?) requirement being changed. -- nosy: +tjreedy resolution: -> out of date status: open -> pendi

[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2008-07-03 Thread toxik
New submission from toxik <[EMAIL PROTECTED]>: 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