From: Greg Ames Date: Fri, 25 Oct 2002 18:25:11 +0000 (+0000) Subject: don't apply byte ranges to redirects, error documents, etc. X-Git-Tag: 2.0.44~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7cb5c9c6440378c3d4c9b7477d14718ca8dbda8;p=thirdparty%2Fapache%2Fhttpd.git don't apply byte ranges to redirects, error documents, etc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97304 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 09e087c88c0..f5b64ae7d5c 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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; }