Skip to content

Commit

Permalink
Send a 206 response for a "Range: bytes=0-" request, even if 200 woul…
Browse files Browse the repository at this point in the history
…d be more

efficient.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1163833 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Stefan Fritsch committed Aug 31, 2011
1 parent 6b7fd6d commit c1e78e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/http/byterange_filter.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c1e78e7

Please sign in to comment.