httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: problems w/ geronimo wiki (cache???)
Date Tue, 07 Jun 2005 21:01:15 GMT
--On Tuesday, June 7, 2005 1:50 PM -0700 Justin Erenkrantz 
<justin@erenkrantz.com> wrote:

> to be a better way.  For now, I'll commit a fix that matches what we did
> with mod_proxy; but this pattern keeps emerging.  -- justin

I'm not going to commit it yet.  However, I'm building a new httpd on ajax 
with the following patch.  -- justin

Index: mod_cgi.c
===================================================================
--- mod_cgi.c   (revision 188838)
+++ mod_cgi.c   (working copy)
@@ -921,7 +921,15 @@
         int ret;

         if ((ret = ap_scan_script_header_err_brigade(r, bb, sbuf))) {
-            return log_script(r, conf, ret, dbuf, sbuf, bb, script_err);
+            ret = log_script(r, conf, ret, dbuf, sbuf, bb, script_err);
+
+            /* Pass EOS bucket down the filter chain. */
+            apr_brigade_cleanup(bb);
+            b = apr_bucket_eos_create(c->bucket_alloc);
+            APR_BRIGADE_INSERT_TAIL(bb, b);
+            ap_pass_brigade(r->output_filters, bb);
+
+            return ret;
         }

         location = apr_table_get(r->headers_out, "Location");


Mime
View raw message