]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport fix for ap_set_byterange() which correctly handles
authorJim Jagielski <jim@apache.org>
Mon, 29 Mar 2004 18:23:03 +0000 (18:23 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Mar 2004 18:23:03 +0000 (18:23 +0000)
ErrorDocument

PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103194 13f79535-47bb-0310-9956-ffa450edef68

STATUS
src/main/http_protocol.c

diff --git a/STATUS b/STATUS
index e33f77af9444099d8f2aae8b7d9a8b92a5818c52..22e0eb4f6c87e3b70843d85708d4d18efd42c276 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 1.3 STATUS:                                             -*-text-*-
-  Last modified at [$Date: 2004/03/29 18:18:00 $]
+  Last modified at [$Date: 2004/03/29 18:23:03 $]
 
 Release:
 
@@ -60,12 +60,6 @@ RELEASE NON-SHOWSTOPPERS BUT WOULD BE REAL NICE TO WRAP THESE UP:
        http://www.apache.org/~trawick/13_custom_response_patch
         +1: trawick, stoddard
 
-   * byterange requests with configured ErrorDocuments return 206 instead
-     of the error code like with 2.0.  looks like some 2.0 logic needs to
-     backported.
-       http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=107780510031395&w=2
-        +1: geoff
-
    * isn't ap_die() broken with recognizing recursive errors
        Message-Id: <3F8C56E3.8050501@attglobal.net>
         +1: jeff, jim
index 61415926083e6393bd8a596d968b8a8bbd85bcd9..c516f73918c7256becfc6513914d113d438706fd 100644 (file)
@@ -260,7 +260,7 @@ API_EXPORT(int) ap_set_byterange(request_rec *r)
     if (!(range = ap_table_get(r->headers_in, "Range")))
         range = ap_table_get(r->headers_in, "Request-Range");
 
-    if (!range || strncasecmp(range, "bytes=", 6)) {
+    if (!range || strncasecmp(range, "bytes=", 6) || (r->status != HTTP_OK)) {
         return 0;
     }
     range += 6;