From b902cb08f843f66ceb949a373d318eea4b4e244b Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 5 Sep 2002 06:59:14 +0000 Subject: Morph DONE result from a sub-request handler to OK as DONE is only relevant when we are the main request. This fixes a problem with mod_include printing out an error message on DAV sub-requests because mod_dav will return DONE instead of OK. This would result in the correct output merged in with an error string. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96642 13f79535-47bb-0310-9956-ffa450edef68 --- server/request.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/request.c') diff --git a/server/request.c b/server/request.c index 4cd55af78c..af28372fbc 100644 --- a/server/request.c +++ b/server/request.c @@ -1867,6 +1867,9 @@ AP_DECLARE(int) ap_run_sub_req(request_rec *r) } if (retval != OK) { retval = ap_invoke_handler(r); + if (retval == DONE) { + retval = OK; + } } ap_finalize_sub_req_protocol(r); return retval; -- cgit v1.2.3