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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24363>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to