]> granicus.if.org Git - apache/commitdiff
Send a 206 response for a "Range: bytes=0-" request, even if 200 would be more
authorStefan Fritsch <sf@apache.org>
Wed, 31 Aug 2011 21:37:38 +0000 (21:37 +0000)
committerStefan Fritsch <sf@apache.org>
Wed, 31 Aug 2011 21:37:38 +0000 (21:37 +0000)
efficient.

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

modules/http/byterange_filter.c

index c8dee1d356237c7486c51f8343b4411da3864716..9f7edeb74295a933de2c3f89aa7ee0563e5f768d 100644 (file)
@@ -613,9 +613,9 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength,
         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;
     }