From b99e1c47807c1f4e20276d1b39ecd3f3e59d7dfb Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Fri, 25 Oct 2002 18:25:11 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3