[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []
Petri Lehtinen
report at bugs.python.org
Tue Nov 22 13:19:27 CET 2011
Petri Lehtinen <petri at digip.org> added the comment:
getallmatchinheaders() is not documented, i.e. it's not part of the public API. Furthermore, it's only used by http.server.CGIHTTPRequestHandler, and the comment above it even says that it should be moved there.
There are three options now:
1) Document the function to make it officially part of the public API
2) Rename and move the function to http.server
3) Leave it undocumented and just fix it
In any case, the first thing that should be done is to add a test for CGIHTTPRequestHandler that fails with the current (broken) getallmatchinheaders() implementation.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13425>
_______________________________________
More information about the Python-bugs-list
mailing list