Message135760
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(). |
|
Date |
User |
Action |
Args |
2011-05-11 06:42:19 | vinay.sajip | set | recipients:
+ vinay.sajip, orsenthil, giampaolo.rodola, skrah, python-dev |
2011-05-11 06:42:19 | vinay.sajip | set | messageid: <1305096139.29.0.663497653883.issue12039@psf.upfronthosting.co.za> |
2011-05-11 06:42:18 | vinay.sajip | link | issue12039 messages |
2011-05-11 06:42:18 | vinay.sajip | create | |
|