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 vinay.sajip
Recipients giampaolo.rodola, orsenthil, python-dev, skrah, vinay.sajip
Date 2011-05-11.06:42:18
SpamBayes Score 0.027198294
Marked as misclassified No
Message-id <1305096139.29.0.663497653883.issue12039@psf.upfronthosting.co.za>
In-reply-to
Content
Senthil: Almost, but not quite. end_headers() needs to be called even if send_header() isn't called (though it may be being called behind the scenes, that's not necessarily obvious to a user).

In my original unit-testing code, I had only

request.send_response(200)

and that caused a failure. My code now has to read

request.send_response(200)
request.end_headers()

No send_header() in sight! Perhaps the end_header() call requirement should also be mentioned in the docs on send_response().
History
Date User Action Args
2011-05-11 06:42:19vinay.sajipsetrecipients: + vinay.sajip, orsenthil, giampaolo.rodola, skrah, python-dev
2011-05-11 06:42:19vinay.sajipsetmessageid: <1305096139.29.0.663497653883.issue12039@psf.upfronthosting.co.za>
2011-05-11 06:42:18vinay.sajiplinkissue12039 messages
2011-05-11 06:42:18vinay.sajipcreate