From c28dfa19f1c66ce88f71810fc51b28d5dddd8b13 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Mon, 2 Aug 2004 17:12:32 +0000 Subject: [PATCH] * modules/http/http_request.c (ap_internal_redirect): Call quick_handler 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 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 933c8241e7..16abb0f456 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -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 { -- 2.50.1