diff options
author | Stefan Fritsch <sf@apache.org> | 2011-08-31 21:37:38 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-08-31 21:37:38 +0000 |
commit | c1e78e71e8ccb9000a2c4e6d6f7268c5f4f0c2be (patch) | |
tree | 6b02ac7c130a557a17162780a5ff251f3ba221eb /modules/http | |
parent | 6b7fd6d6ea64f3774d23d1856ab2f9da0a908fe5 (diff) | |
download | httpd-c1e78e71e8ccb9000a2c4e6d6f7268c5f4f0c2be.tar.gz |
Send a 206 response for a "Range: bytes=0-" request, even if 200 would be more
efficient.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1163833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http')
-rw-r--r-- | modules/http/byterange_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index c8dee1d356..9f7edeb742 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -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; } |