]> granicus.if.org Git - apache/commitdiff
don't apply byte ranges to redirects, error documents, etc.
authorGreg Ames <gregames@apache.org>
Fri, 25 Oct 2002 18:25:11 +0000 (18:25 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 25 Oct 2002 18:25:11 +0000 (18:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97304 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 09e087c88c0a3fd02ffbf308b7890954129938c4..f5b64ae7d5c62b3a200d451a1224b2490d6ae3f4 100644 (file)
@@ -3062,7 +3062,7 @@ static int ap_set_byterange(request_rec *r)
         range = apr_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;
     }