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

PR#39710 - badly broken errordocuments for CGI

We've just had another duplicate report of this on bugzilla.
We've got a simple patch, and people asking WTF is going on
with inaction.  Noone seems clear on why the patch shouldn't
be applied (http://marc.info/?l=apache-httpd-dev&m=117760311129386&w=2).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@541926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Kew
2007-05-26 18:50:18 +00:00
parent 972efb077f
commit d09a836fb0

View File

@@ -929,18 +929,7 @@ static int cgi_handler(request_rec *r)
int ret;
if ((ret = ap_scan_script_header_err_brigade(r, bb, sbuf))) {
ret = log_script(r, conf, ret, dbuf, sbuf, bb, script_err);
/* Set our status. */
r->status = ret;
/* 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;
return log_script(r, conf, ret, dbuf, sbuf, bb, script_err);
}
location = apr_table_get(r->headers_out, "Location");