]> granicus.if.org Git - apache/commitdiff
we should be copying over all metadata buckets we don't understand, not
authorCliff Woolley <jwoolley@apache.org>
Fri, 31 May 2002 07:43:22 +0000 (07:43 +0000)
committerCliff Woolley <jwoolley@apache.org>
Fri, 31 May 2002 07:43:22 +0000 (07:43 +0000)
just error buckets.

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

modules/test/mod_bucketeer.c

index 03299f43b76cfc50534c58e2e10b6bec126607d3..bb8ddb145ea7dd516bd1c91f288bb17a1cc84358 100644 (file)
@@ -141,10 +141,11 @@ 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);
+        if (e->length == 0) {
+            /* metadata bucket */
+            apr_bucket *cpy;
+            apr_bucket_copy(e, &cpy);
+            APR_BRIGADE_INSERT_TAIL(ctx->bb, cpy);
             continue;
         }