]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Morph DONE result from a sub-request handler to OK as DONE is only relevant
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 5 Sep 2002 06:59:14 +0000 (06:59 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 5 Sep 2002 06:59:14 +0000 (06:59 +0000)
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

index 4cd55af78cdc28ca64c969277c49613238a2f791..af28372fbcbdc1037695fae496b2cf50a8a725fb 100644 (file)
@@ -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;