1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

* 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
This commit is contained in:
Justin Erenkrantz
2004-08-02 17:12:32 +00:00
parent ea15a23ccf
commit c28dfa19f1

View File

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