Terry J. Reedy <[email protected]> added the comment:
In 3.2, http.client.py, insertion would be at line 718.
However, only one statement is needed to break. 3.2 elsewhere has
if line in (b'\r\n', b'\n', b''):
break
But I note that at 512, there is the code luzakiru patched in. I think that
should perhaps be changed to above also, unless bare \n from reading a server
is really impossible.
At 313, i found this misformed code:
if not line:
# Presumably, the server closed the connection before
# sending a valid response.
raise BadStatusLine(line)
[I am curious -- is it really intended to simply throw away the tunnel server
response after the first header?]
----------
nosy: +terry.reedy
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13684>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com