jerenkrantz 2004/08/02 10:12:32
Modified: modules/http http_request.c
Log:
* 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
Revision Changes Path
1.165 +7 -5 httpd-2.0/modules/http/http_request.c
Index: http_request.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/http/http_request.c,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -u -r1.164 -r1.165
--- http_request.c 9 Feb 2004 20:29:20 -0000 1.164
+++ http_request.c 2 Aug 2004 17:12:32 -0000 1.165
@@ -455,12 +455,14 @@
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 {
|