[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

Martin Panter report at bugs.python.org
Sun Feb 15 05:34:53 CET 2015


Martin Panter added the comment:

BTW in the original code, I think line[:1] in "\t\n\r " might have been correct. It looks like the getallmatchinheaders() method was actually meant to return continued lines separately, prefixed with whitespace. My patch is probably only appropriate for Python 3; maybe Mike’s code will work for Python 2.

----------

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


More information about the Python-bugs-list mailing list