Return-Path: Delivered-To: apmail-httpd-test-cvs-archive@httpd.apache.org Received: (qmail 34984 invoked by uid 500); 7 Mar 2002 09:28:24 -0000 Mailing-List: contact test-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-cvs@httpd.apache.org Received: (qmail 34973 invoked from network); 7 Mar 2002 09:28:24 -0000 Date: 7 Mar 2002 09:28:23 -0000 Message-ID: <20020307092823.96471.qmail@icarus.apache.org> From: jerenkrantz@apache.org To: httpd-test-cvs@apache.org Subject: cvs commit: httpd-test/perl-framework/c-modules/input_body_filter mod_input_body_filter.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jerenkrantz 02/03/07 01:28:23 Modified: perl-framework/c-modules/client_add_filter mod_client_add_filter.c perl-framework/c-modules/input_body_filter mod_input_body_filter.c Log: Match up with latest httpd-2.0 builds. - AP_FTYPE_CONTENT is now AP_FTYPE_RESOURCE - add_*_filter *requires* the r->connection. (fixes SEGV) Revision Changes Path 1.2 +2 -2 httpd-test/perl-framework/c-modules/client_add_filter/mod_client_add_filter.c Index: mod_client_add_filter.c =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/c-modules/client_add_filter/mod_client_add_filter.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mod_client_add_filter.c 20 Aug 2001 02:51:16 -0000 1.1 +++ mod_client_add_filter.c 7 Mar 2002 09:28:23 -0000 1.2 @@ -21,10 +21,10 @@ request_rec *r = (request_rec *)data; if (strcasecmp(key, "X-AddInputFilter") == 0) { - ap_add_input_filter(val, NULL, r, NULL); + ap_add_input_filter(val, NULL, r, r->connection); } else if (strcasecmp(key, "X-AddOutputFilter") == 0) { - ap_add_output_filter(val, NULL, r, NULL); + ap_add_output_filter(val, NULL, r, r->connection); } return 1; 1.8 +2 -2 httpd-test/perl-framework/c-modules/input_body_filter/mod_input_body_filter.c Index: mod_input_body_filter.c =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/c-modules/input_body_filter/mod_input_body_filter.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- mod_input_body_filter.c 25 Jan 2002 01:12:28 -0000 1.7 +++ mod_input_body_filter.c 7 Mar 2002 09:28:23 -0000 1.8 @@ -142,7 +142,7 @@ &input_body_filter_module); if (dcfg->enabled) { - ap_add_input_filter(INPUT_BODY_FILTER_NAME, NULL, r, NULL); + ap_add_input_filter(INPUT_BODY_FILTER_NAME, NULL, r, r->connection); } } @@ -159,7 +159,7 @@ ap_register_input_filter(INPUT_BODY_FILTER_NAME, input_body_filter_handler, - AP_FTYPE_CONTENT); + AP_FTYPE_RESOURCE); } static const command_rec input_body_filter_cmds[] = {