On Mon, 21 Aug 2000, Alex Menendez wrote:

> 
> ok, what about cgi's that generate Location: headers. Am I out of luck
> here? should I contemplate changing src for ap_run_sub_req

doh, right, headers are not added until run().  no need to change
ap_run_sub_req, we can support this.  with the patch below you can say
$subr->run(1), where 1 enables send_http_header() within subrequests.

--- src/modules/perl/Apache.xs  2000/08/15 19:36:32     1.103
+++ src/modules/perl/Apache.xs  2000/08/21 19:38:32
@@ -1996,10 +2003,15 @@
            "Apache::SubRequest::DESTROY(0x%lx)\n", (unsigned long)r));
 
 int
-run(r)
+run(r, allow_send_header=0)
     Apache::SubRequest r
+    int allow_send_header
 
     CODE:
+    if (allow_send_header) {
+        r->assbackwards = 0;
+    }
+
     RETVAL = run_sub_req(r);
 
     OUTPUT:

Reply via email to