summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES5
-rw-r--r--modules/generators/mod_cgi.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index f80eeab4d8..7221663a6e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
-
Changes with Apache 2.0.38
+ *) Allow CGI scripts to return their Content-Length. This also fixes a
+ hang on HEAD requests seen on certain platforms (such as FreeBSD).
+ [Justin Erenkrantz]
+
*) Added log rotation based on file size to the RotateLog support
utility. [Brad Nicholes]
diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c
index daad028808..7914df7024 100644
--- a/modules/generators/mod_cgi.c
+++ b/modules/generators/mod_cgi.c
@@ -798,9 +798,7 @@ static int cgi_handler(request_rec *r)
return HTTP_MOVED_TEMPORARILY;
}
- if (!r->header_only) {
- ap_pass_brigade(r->output_filters, bb);
- }
+ ap_pass_brigade(r->output_filters, bb);
log_script_err(r, script_err);
apr_file_close(script_err);