1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-01 07:26:57 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christophe Jaillet
2014-10-05 06:43:45 +00:00
parent e40d0a618f
commit ecc3c818fa

View File

@ -109,6 +109,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
if (APR_BUCKET_IS_METADATA(e)) {
/* metadata bucket */
apr_bucket *cpy;
apr_bucket_copy(e, &cpy);
APR_BRIGADE_INSERT_TAIL(ctx->bb, cpy);
continue;
@ -124,6 +125,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
data[i] == c->bucketdelimiter ||
data[i] == c->passdelimiter) {
apr_bucket *p;
if (i - lastpos > 0) {
p = apr_bucket_pool_create(apr_pmemdup(f->r->pool,
&data[lastpos],
@ -166,7 +168,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
return APR_SUCCESS;
}
static void register_hooks(apr_pool_t * p)
static void register_hooks(apr_pool_t *p)
{
ap_register_output_filter(bucketeerFilterName, bucketeer_out_filter,
NULL, AP_FTYPE_RESOURCE-1);