You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by je...@apache.org on 2002/03/07 10:28:23 UTC

cvs commit: httpd-test/perl-framework/c-modules/input_body_filter mod_input_body_filter.c

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[] = {