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 nosklo
Recipients nosklo
Date 2008-09-11.18:07:50
SpamBayes Score 3.1209627e-06
Marked as misclassified No
Message-id <1221156514.39.0.145827705782.issue3839@psf.upfronthosting.co.za>
In-reply-to
Content
The finish_content method in wsgiref.handlers.BaseHandler class resets
Content-Length to "0" if there was no content returned by the
application, even if the application has set it already.

That makes impossible to implement things like HEAD requests in the
application, which should return the Content-Length without returning
actual content.

The desired behavior would be to respect the header set by the wsgi
application, using "0" as a default value instead.
History
Date User Action Args
2008-09-11 18:08:34nosklosetrecipients: + nosklo
2008-09-11 18:08:34nosklosetmessageid: <1221156514.39.0.145827705782.issue3839@psf.upfronthosting.co.za>
2008-09-11 18:07:51nosklolinkissue3839 messages
2008-09-11 18:07:50nosklocreate