Mod Cplusplus CVS committal
Author : gr84b8
Project : mod_cplusplus
Module : example
Dir : mod_cplusplus/example/output_filter
Modified Files:
test_output.cpp
Log Message:
update to synch up with filter changes
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/output_filter/test_output.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- test_output.cpp 30 May 2001 04:49:29 -0000 1.3
+++ test_output.cpp 29 Mar 2002 23:12:58 -0000 1.4
@@ -18,7 +18,8 @@
apr_bucket *input_bucket;
apr_bucket_brigade *new_brigade;
- new_brigade = apr_brigade_create(f->r->pool);
+ new_brigade = apr_brigade_create(f->r->pool,
+ f->c->bucket_alloc);
APR_BRIGADE_FOREACH(input_bucket,bb) {
const char *data;
apr_size_t len;
@@ -27,7 +28,7 @@
apr_bucket *new_bucket;
if(APR_BUCKET_IS_EOS(input_bucket)) {
- apr_bucket *eos_bucket = apr_bucket_eos_create();
+ apr_bucket *eos_bucket = apr_bucket_eos_create(f->c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(new_brigade, eos_bucket);
break;
}
@@ -39,7 +40,8 @@
buf[n] = data[len - n -1];
}
- new_bucket = apr_bucket_pool_create(buf,len,f->r->pool);
+ new_bucket = apr_bucket_pool_create(buf,len,f->r->pool,
+ f->c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(new_brigade, new_bucket);
}
return ap_pass_brigade(f->next, new_brigade);
|