This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients luzakiru, orsenthil, terry.reedy
Date 2011-12-30.22:24:54
SpamBayes Score 5.38313e-07
Marked as misclassified No
Message-id <1325283895.47.0.693585353298.issue13684@psf.upfronthosting.co.za>
In-reply-to
Content
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?]
History
Date User Action Args
2011-12-30 22:24:55terry.reedysetrecipients: + terry.reedy, orsenthil, luzakiru
2011-12-30 22:24:55terry.reedysetmessageid: <1325283895.47.0.693585353298.issue13684@psf.upfronthosting.co.za>
2011-12-30 22:24:54terry.reedylinkissue13684 messages
2011-12-30 22:24:54terry.reedycreate