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/09/04 18:04:39 UTC
svn commit: r1165062 - /httpd/httpd/trunk/modules/http/byterange_filter.c
Author: sf
Date: Sun Sep 4 16:04:38 2011
New Revision: 1165062
URL: http://svn.apache.org/viewvc?rev=1165062&view=rev
Log:
Revert r1163833:
Send a 206 response for a "Range: bytes=0-" request, even if 200 would be
more efficient.
As discussed on list: Clients that use the 206 response to detect range
support are considered broken and should be fixed to use the Accept-Ranges
header instead.
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=1165062&r1=1165061&r2=1165062&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Sun Sep 4 16:04:38 2011
@@ -578,9 +578,9 @@ static int ap_set_byterange(request_rec
/* If all ranges are unsatisfiable, we should return 416 */
return -1;
}
- if (sum_lengths > clength) {
+ if (sum_lengths >= clength) {
ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
- "Sum of ranges larger than file, ignoring.");
+ "Sum of ranges not smaller than file, ignoring.");
return 0;
}