]> granicus.if.org Git - apache/commitdiff
remove some dead code. It's been there since 1996 (1.3 rev 1.28), so
authorGreg Ames <gregames@apache.org>
Thu, 8 Aug 2002 20:39:15 +0000 (20:39 +0000)
committerGreg Ames <gregames@apache.org>
Thu, 8 Aug 2002 20:39:15 +0000 (20:39 +0000)
extra eyeballs would be appreciated.

If it's not really dead, then we need to re-arrange this function so
that earlier changes to the r aren't lost.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96321 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index d4a28f996e1825a0c6945660504c8768e5eb2cdf..c2fd96beb3268075efbfbfaf53807e5fde8c5da4 100644 (file)
@@ -2284,19 +2284,18 @@ AP_DECLARE(void) ap_send_error_response(request_rec *r, int recursive_error)
          * as a text message, so first check the custom response
          * string to ensure that it is a text-string (using the
          * same test used in ap_die(), i.e. does it start with a ").
-         * If it doesn't, we've got a recursive error, so find
-         * the original error and output that as well.
+         * 
+         * If it's not a text string, we've got a recursive error or 
+         * an external redirect.  If it's a recursive error, ap_die passes
+         * us the second error code so we can write both, and has already 
+         * backed up to the original error.  If it's an external redirect, 
+         * it hasn't happened yet; we may never know if it fails.
          */
         if (custom_response[0] == '\"') {
             ap_rputs(custom_response + 1, r);
             ap_finalize_request_protocol(r);
             return;
         }
-        /*
-         * Redirect failed, so get back the original error
-         */
-        while (r->prev && (r->prev->status != HTTP_OK))
-            r = r->prev;
     }
     {
         const char *title = status_lines[idx];