twisted.web.http_headers.Headers allows itself to be constructed from strings instead of lists

[email protected] Mon, 14 Sep 2009 15:45:05 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from exarkun <[email protected]>:

`Headers` is basically an abstraction around a dict mapping `str` to `list` of `str`.  So its initializer will accept such a dict.  However, it will also happily accept a dict mapping `str` to `str` and populate itself with garbage.  It should reject this case.


----------
Type     : enhancement
Component: web
Keywords : easy
Priority : low
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4022