You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/08/26 00:12:44 UTC

svn commit: r1161778 - /httpd/httpd/trunk/modules/http/byterange_filter.c

Author: sf
Date: Thu Aug 25 22:12:43 2011
New Revision: 1161778

URL: http://svn.apache.org/viewvc?rev=1161778&view=rev
Log:
fix new breakage introduced by r1161767 

Modified:
    httpd/httpd/trunk/modules/http/byterange_filter.c

Modified: httpd/httpd/trunk/modules/http/byterange_filter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?rev=1161778&r1=1161777&r2=1161778&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Thu Aug 25 22:12:43 2011
@@ -195,8 +195,8 @@ static apr_status_t copy_brigade_range(a
             return rv;
         }
 
+        APR_BRIGADE_INSERT_TAIL(bbout, copy);
         if (e == first) {
-            APR_BRIGADE_INSERT_TAIL(bbout, copy);
             if (off_first != start64) {
                 rv = apr_bucket_split(copy, (apr_size_t)(start64 - off_first));
                 if (rv == APR_ENOTIMPL) {
@@ -252,9 +252,6 @@ static apr_status_t copy_brigade_range(a
                 off_last += start64 - off_first;
                 copy = out_first;
             }
-            else {
-                APR_BRIGADE_INSERT_TAIL(bbout, copy);
-            }
             if (end64 - off_last != (apr_uint64_t)e->length) {
                 rv = apr_bucket_split(copy, (apr_size_t)(end64 + 1 - off_last));
                 if (rv == APR_ENOTIMPL) {