]> granicus.if.org Git - apache/commitdiff
mod_bucketeer needs to preserve error buckets if it sees them rather
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 21:10:19 +0000 (21:10 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 21:10:19 +0000 (21:10 +0000)
than silently discarding them.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95412 13f79535-47bb-0310-9956-ffa450edef68

modules/test/mod_bucketeer.c

index 773ed69f1ae2203d11037d37b7f8322fe59fa03b..03299f43b76cfc50534c58e2e10b6bec126607d3 100644 (file)
@@ -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);