]> granicus.if.org Git - apache/commitdiff
Simplify a bit
authorCliff Woolley <jwoolley@apache.org>
Mon, 6 May 2002 08:14:52 +0000 (08:14 +0000)
committerCliff Woolley <jwoolley@apache.org>
Mon, 6 May 2002 08:14:52 +0000 (08:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94945 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 03068e36c164ae30507377dd9d989b72d0d53873..6a79f83f3330853fb203fb452fc4be5c0b55e1e8 100644 (file)
@@ -2684,14 +2684,8 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f,
         return APR_SUCCESS;
     }
 
-    /* If we have a saved brigade from a previous run, concat the passed
-     * brigade with our saved brigade.  Otherwise just continue.
-     */
-    if (!APR_BRIGADE_EMPTY(ctx->bb)) {
-        APR_BRIGADE_CONCAT(ctx->bb, bb);
-        bb = ctx->bb;
-    }
-    apr_brigade_destroy(ctx->bb);
+    /* Prepend any earlier saved brigades. */
+    APR_BRIGADE_PREPEND(bb, ctx->bb);
 
     /* It is possible that we won't have a content length yet, so we have to
      * compute the length before we can actually do the byterange work.