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 jerith
Recipients gvanrossum, jerith, samwyse, vila
Date 2008-05-10.19:34:04
SpamBayes Score 0.08736945
Marked as misclassified No
Message-id <1210448047.58.0.340955792809.issue1491@psf.upfronthosting.co.za>
In-reply-to
Content
Added handling for "Expect: 100-continue" header to
BaseHTTPRequestHandler. By default, any request that has this header
gets a 100 Continue response (with no other headers) before
do_WHATEVER() is called. By overriding handle_expect_100(), you can
reject incoming requests instead of sending a 100 Continue if you so desire.

Refactoring as per comments above was also performed.

Note: This patch changes the default behaviour in the case where both
the client and the server claim to support HTTP/1.1 from doing nothing
in the case of an "Expect: 100-continue" header on the request to
sending a 100 Continue response and then completing the request as normal.
History
Date User Action Args
2008-05-10 19:34:07jerithsetspambayes_score: 0.0873694 -> 0.08736945
recipients: + jerith, gvanrossum, vila, samwyse
2008-05-10 19:34:07jerithsetspambayes_score: 0.0873694 -> 0.0873694
messageid: <1210448047.58.0.340955792809.issue1491@psf.upfronthosting.co.za>
2008-05-10 19:34:06jerithlinkissue1491 messages
2008-05-10 19:34:06jerithcreate