summaryrefslogtreecommitdiff
path: root/modules/test
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2002-05-30 21:10:19 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2002-05-30 21:10:19 +0000
commit477d093d23723d92e171ed87a6b31f8e51261aef (patch)
treeef36778d000a2a8c251f021f9e6f9ffdd4cf23f3 /modules/test
parent780a6b328deb2103b1f172afd2abeafad59910f3 (diff)
downloadhttpd-477d093d23723d92e171ed87a6b31f8e51261aef.tar.gz
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
Diffstat (limited to 'modules/test')
-rw-r--r--modules/test/mod_bucketeer.c8
1 files changed, 8 insertions, 0 deletions
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);