diff options
author | Greg Ames <gregames@apache.org> | 2002-10-25 20:25:11 +0200 |
---|---|---|
committer | Greg Ames <gregames@apache.org> | 2002-10-25 20:25:11 +0200 |
commit | d7cb5c9c6440378c3d4c9b7477d14718ca8dbda8 (patch) | |
tree | 56312b659fa8693910ca1c78856c87c3e534cb8f /modules/http | |
parent | i hate it when tha happens.. (diff) | |
download | apache2-d7cb5c9c6440378c3d4c9b7477d14718ca8dbda8.tar.xz apache2-d7cb5c9c6440378c3d4c9b7477d14718ca8dbda8.zip |
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
Diffstat (limited to 'modules/http')
-rw-r--r-- | modules/http/http_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 09e087c88c..f5b64ae7d5 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; } |