[Python-Dev] [Python-checkins] cpython: Issue #12039: Add end_headers() call to avoid BadStatusLine. (original) (raw)

Senthil Kumaran orsenthil at gmail.com
Tue May 10 10:37:42 CEST 2011


On Tue, May 10, 2011 at 10:10:15AM +0200, vinay.sajip wrote:

diff --git a/Lib/test/testlogging.py b/Lib/test/testlogging.py --- a/Lib/test/testlogging.py +++ b/Lib/test/testlogging.py @@ -1489,6 +1489,7 @@ except: self.postdata = None request.sendresponse(200) + request.endheaders() self.handled.set()

This is accurate. It should have resulted from the change made in the http.server, because the headers are now cached and then written to the output stream in one-shot when end_headers/flush_headers are called.

Thanks, Senthil



More information about the Python-Dev mailing list