[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

Ezio Melotti report at bugs.python.org
Fri Nov 18 12:36:11 CET 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Actually the headers are already parsed, so the code should use self.items() instead of self.keys(), check if the key (without ':') matches, and append the key-value pair to the list.
Having a list of key-value pairs seems more useful than having a bare string, but this would be incompatible with 2.7.
This function also doesn't seem to be tested and documented, and it's used only once in the stdlib.

----------
keywords: +easy
stage:  -> test needed
versions: +Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13425>
_______________________________________


More information about the Python-bugs-list mailing list