Commit 3ad445cf authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Fix some byterange handling. If we get a byte range that looks like

"-999999" where that is past the end of the file, we should return
a PARTIAL CONTENT status code, and return the whole file as one big
byterange.  This matches the 1.3 handling now.  [Ryan Bloom]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87885 13f79535-47bb-0310-9956-ffa450edef68
parent ea06495e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
Changes with Apache 2.0b1

  *) Fix some byterange handling.  If we get a byte range that looks like
     "-999999" where that is past the end of the file, we should return 
     a PARTIAL CONTENT status code, and return the whole file as one big
     byterange.  This matches the 1.3 handling now.  [Ryan Bloom]

  *) Make the error bucket a real meta-data bucket.  This means that the
     bucket length is 0, and a read returns NULL data.  If one of these
     buckets is passed down after the headers are sent, this data will
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static int parse_byterange(char *range, apr_off_t clength,
    if (*start > *end)
	return -1;

    return (*start > 0 || *end < clength - 1);
    return (*start > 0 || *end < clength);
}

static int ap_set_byterange(request_rec *r);