You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by be...@apache.org on 2002/03/10 21:49:29 UTC
cvs commit: httpd-2.0/modules/experimental mod_case_filter.c
ben 02/03/10 12:49:29
Modified: modules/experimental mod_case_filter.c
Log:
Be a better example.
Revision Changes Path
1.10 +3 -6 httpd-2.0/modules/experimental/mod_case_filter.c
Index: mod_case_filter.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_case_filter.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mod_case_filter.c 7 Mar 2002 09:27:15 -0000 1.9
+++ mod_case_filter.c 10 Mar 2002 20:49:29 -0000 1.10
@@ -58,21 +58,18 @@
/* XXX: why can't I reuse pbktIn??? */
apr_bucket *pbktEOS=apr_bucket_eos_create();
APR_BRIGADE_INSERT_TAIL(pbbOut,pbktEOS);
- break;
+ continue;
}
/* read */
apr_bucket_read(pbktIn,&data,&len,APR_BLOCK_READ);
/* write */
- buf=apr_palloc(f->r->pool,len);
+ buf=malloc(len);
for(n=0 ; n < len ; ++n)
buf[n]=toupper(data[n]);
- /* XXX: should we use a heap bucket instead? Or a transient (in
- * which case we need a separate brigade for each bucket)?
- */
- pbktOut=apr_bucket_pool_create(buf,len,f->r->pool);
+ pbktOut=apr_bucket_heap_create(buf,len,0);
APR_BRIGADE_INSERT_TAIL(pbbOut,pbktOut);
}