Commit baab6a2a authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* Style police. No functional changes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162556 13f79535-47bb-0310-9956-ffa450edef68
parent f68e2921
Loading
Loading
Loading
Loading
+10 −5
Changes for modules/http/byterange_filter.c: 10 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -276,8 +276,10 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f,

    indexes = apr_array_make(r->pool, 10, sizeof(indexes_t));

    /* Iterate through the brigade until reaching EOS or a bucket with
     * unknown length. */
    /*
     * Iterate through the brigade until reaching EOS or a bucket with
     * unknown length.
     */
    for (e = APR_BRIGADE_FIRST(bb);
         (e != APR_BRIGADE_SENTINEL(bb) && !APR_BUCKET_IS_EOS(e)
          && e->length != (apr_size_t)-1);
@@ -285,10 +287,12 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f,
        clength += e->length;
    }

    /* Don't attempt to do byte range work if this brigade doesn't
    /*
     * Don't attempt to do byte range work if this brigade doesn't
     * contain an EOS, or if any of the buckets has an unknown length;
     * this avoids the cases where it is expensive to perform
     * byteranging (i.e. may require arbitrary amounts of memory). */
     * byteranging (i.e. may require arbitrary amounts of memory).
     */
    if (!APR_BUCKET_IS_EOS(e) || clength <= 0) {
        ap_remove_output_filter(f);
        return ap_pass_brigade(f->next, bb);
@@ -350,7 +354,8 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f,
        }
        found = 1;

        /* For single range requests, we must produce Content-Range header.
        /*
         * For single range requests, we must produce Content-Range header.
         * Otherwise, we need to produce the multipart boundaries.
         */
        if (num_ranges == 1) {