]> granicus.if.org Git - apache/commitdiff
* modules/http/http_request.c (ap_internal_redirect): Call quick_handler
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 2 Aug 2004 17:12:32 +0000 (17:12 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 2 Aug 2004 17:12:32 +0000 (17:12 +0000)
  when we do an internal redirect to allow caching.  This allows mod_dir
  requests to be cached.

Reviewed by: Bill Stoddard

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

modules/http/http_request.c

index 933c8241e782cbd510e35405a58917addd78d8a9..16abb0f456ad958cd9ee8f88aaf1dac68ac64776 100644 (file)
@@ -455,12 +455,14 @@ AP_DECLARE(void) ap_internal_redirect(const char *new_uri, request_rec *r)
         return;
     }
 
-    access_status = ap_process_request_internal(new);
-    if (access_status == OK) {
-        if ((access_status = ap_invoke_handler(new)) != 0) {
-            ap_die(access_status, new);
-            return;
+    access_status = ap_run_quick_handler(new, 0);  /* Not a look-up request */
+    if (access_status == DECLINED) {
+        access_status = ap_process_request_internal(new);
+        if (access_status == OK) {
+            access_status = ap_invoke_handler(new);
         }
+    }
+    if (access_status == OK) {
         ap_finalize_request_protocol(new);
     }
     else {