httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1163833 - /httpd/httpd/trunk/modules/http/byterange_filter.c
Date Wed, 31 Aug 2011 21:37:38 GMT
Author: sf
Date: Wed Aug 31 21:37:38 2011
New Revision: 1163833

URL: http://svn.apache.org/viewvc?rev=1163833&view=rev
Log:
Send a 206 response for a "Range: bytes=0-" request, even if 200 would be more
efficient.

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=1163833&r1=1163832&r2=1163833&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Wed Aug 31 21:37:38 2011
@@ -613,9 +613,9 @@ static int ap_set_byterange(request_rec 
         sum_lengths += oend - ostart + 1;
         num_ranges++;
     }
-    if (sum_lengths >= clength) {
+    if (sum_lengths > clength) {
         ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
-                      "Sum of ranges not smaller than file, ignoring.");
+                      "Sum of ranges larger than file, ignoring.");
         return 0;
     }
 



Mime
View raw message