]> granicus.if.org Git - apache/commitdiff
Pass the brigade even on header_only requests
authorBrian Pane <brianp@apache.org>
Thu, 13 Jun 2002 19:41:17 +0000 (19:41 +0000)
committerBrian Pane <brianp@apache.org>
Thu, 13 Jun 2002 19:41:17 +0000 (19:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95653 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgid.c

index cf8eb83b25a427fd1907233f3c2d8eee06426e78..506e0710dc6f49b260f0b40ad58ab7658ea39715 100644 (file)
@@ -1234,15 +1234,13 @@ static int cgid_handler(request_rec *r)
             return HTTP_MOVED_TEMPORARILY; 
         } 
 
-        if (!r->header_only) {
-            /* Passing our socket down the filter chain in a pipe bucket
-             * gives up the responsibility of closing the socket, so
-             * get rid of the cleanup.
-             */
-            apr_pool_cleanup_kill(r->pool, (void *)sd, close_unix_socket);
+        /* Passing our socket down the filter chain in a pipe bucket
+         * gives up the responsibility of closing the socket, so
+         * get rid of the cleanup.
+         */
+        apr_pool_cleanup_kill(r->pool, (void *)sd, close_unix_socket);
 
-            ap_pass_brigade(r->output_filters, bb);
-        } 
+        ap_pass_brigade(r->output_filters, bb);
     } 
 
     if (nph) {