[issue24363] httplib fails to handle semivalid HTTP headers
Cory Benfield
report at bugs.python.org
Wed Jun 3 00:11:54 CEST 2015
Cory Benfield added the comment:
This is one of those bugs that's actually super tricky to correctly fix.
The correct path is to have the goal of conservatively accepting as many headers as possible. Probably this means looking ahead to the next few lines and seeing if they appear to roughly keep a header structure (\r\n line breaks and colon separated values). However, I'm not entirely sure how to structure that sentiment in code at this time.
----------
nosy: +Lukasa
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24363>
_______________________________________
More information about the Python-bugs-list
mailing list