]> granicus.if.org Git - apache/commitdiff
_THIS_ is why mod_dir wouldn't serve the results of mod_negotiation
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 6 Aug 2001 19:10:12 +0000 (19:10 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 6 Aug 2001 19:10:12 +0000 (19:10 +0000)
  with a query string

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

include/http_request.h
modules/http/http_request.c

index a1f8375a579c85efaf4d5f0e0df709124578df2c..cee11b4cf32997229ea5b79fd944307b9aa3d32e 100644 (file)
@@ -207,7 +207,7 @@ AP_DECLARE(void) ap_internal_redirect_handler(const char *new_uri, request_rec *
  * @tip the sub_req's pool will be merged into r's pool, be very careful
  * not to destroy this subrequest, it will be destroyed with the main request!
  */
-AP_DECLARE(void) ap_internal_fast_redirect(request_rec *sub_req, request_rec *r))
+AP_DECLARE(void) ap_internal_fast_redirect(request_rec *sub_req, request_rec *r);
 
 /**
  * Can be used within any handler to determine if any authentication
index 107436ce255e8ccea8f5d42511cba0b4d5904090..487d0928ad6393d930ede8412719b888d1595f6f 100644 (file)
@@ -556,7 +556,8 @@ static request_rec *internal_internal_redirect(const char *new_uri,
     return new;
 }
 
-AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r))
+/* XXX: Is this function is so bogus and fragile that we deep-6 it? */
+AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r)
 {
     /* We need to tell POOL_DEBUG that we're guaranteeing that rr->pool
      * will exist as long as r->pool.  Otherwise we run into troubles because
@@ -564,7 +565,9 @@ AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r))
      * rr->pool.
      */
     apr_pool_join(r->pool, rr->pool);
-    r->mtime = 0; /* reset etag info for subrequest */
+    r->mtime = rr->mtime; /* reset etag info for subrequest */
+    r->uri = rr->uri;
+    r->args = rr->args;
     r->filename = rr->filename;
     r->handler = rr->handler;
     r->content_type = rr->content_type;