[issue42432] Http client, Bad Status Line triggered for no reason

sicarius noidea report at bugs.python.org
Mon Nov 23 03:44:00 EST 2020


sicarius noidea <sicarius.ctf at gmail.com> added the comment:

Hi @christian.heimes,
Thank you for your research too. We've also discovered that this check is correct, but this check is very strict and blocking (error raised, stopping the connection), we should maybe be more "laxist" and allow the  lowercase version ? As they do in the others libs ? I've nerver encountered this error with urllib for instance. 

The server that answered this HTTP response line is a clone of the "spip" framework used in many websites. This is clearly a human behavior, but this http.client error could be a bit more "intelligent" I guess.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42432>
_______________________________________


More information about the Python-bugs-list mailing list