From: Justin Erenkrantz Date: Thu, 30 May 2002 21:10:19 +0000 (+0000) Subject: mod_bucketeer needs to preserve error buckets if it sees them rather X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=349b3fbd1ba399d317bd5575f6cadd018d23726f;p=apache mod_bucketeer needs to preserve error buckets if it sees them rather than silently discarding them. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95412 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/test/mod_bucketeer.c b/modules/test/mod_bucketeer.c index 773ed69f1a..03299f43b7 100644 --- a/modules/test/mod_bucketeer.c +++ b/modules/test/mod_bucketeer.c @@ -67,6 +67,7 @@ #include "util_filter.h" #include "apr_buckets.h" #include "http_request.h" +#include "http_protocol.h" static const char bucketeerFilterName[] = "BUCKETEER"; module AP_MODULE_DECLARE_DATA bucketeer_module; @@ -140,6 +141,13 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f, continue; } + if (AP_BUCKET_IS_ERROR(e)) { + apr_bucket *err_copy; + apr_bucket_copy(e, &err_copy); + APR_BRIGADE_INSERT_TAIL(ctx->bb, err_copy); + continue; + } + /* read */ apr_bucket_read(e, &data, &len, APR_BLOCK_READ);