]> granicus.if.org Git - apache/commitdiff
Revert r1163833:
authorStefan Fritsch <sf@apache.org>
Sun, 4 Sep 2011 16:04:38 +0000 (16:04 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 4 Sep 2011 16:04:38 +0000 (16:04 +0000)
    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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1165062 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index 76e636cc0175f84d2589e5c319970d1c8a0c8e44..8972374ff1752e9e4d3a7caee2e56f46e14192c5 100644 (file)
@@ -578,9 +578,9 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength,
         /* 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;
     }